Template
chore: deploy initial code base
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
ARG SONARLOGIN=''
|
||||
ARG VERSION=0.0.0
|
||||
|
||||
FROM node:18.17.0 as build
|
||||
ARG SONARLOGIN
|
||||
ARG VERSION
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
RUN npm config set @strata:registry http://proget.sdt.local/npm/npm
|
||||
RUN npm config set strict-ssl false
|
||||
COPY src/Strata.ContinuousImprovement.Web/continuousimprovement/package*.json ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
RUN npm ci --legacy-peer-deps
|
||||
|
||||
# Copy in rest of app and build
|
||||
COPY src/Strata.ContinuousImprovement.Web/continuousimprovement/ .
|
||||
RUN npm run build
|
||||
|
||||
# Run tests
|
||||
# RUN npm run test-ci
|
||||
|
||||
# Build release container
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
COPY src/Strata.ContinuousImprovement.Web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
Reference in New Issue
Block a user