You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
## STEP 1 BUILD ##
|
|
|
|
FROM node:16.13-alpine AS build
|
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN npm cache clean --force
|
|
|
|
|
|
|
|
COPY package*.json /app
|
|
|
|
|
|
|
|
RUN npm install --only=prod
|
|
|
|
RUN npm install @angular/cli@12.2.12
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
RUN npm run build-prod
|
|
|
|
|
|
|
|
## STEP 2 DEPLOY ##
|
|
|
|
FROM nginx:1.21.3 AS ngi
|
|
|
|
|
|
|
|
COPY --from=build /app/dist/EPAClient /usr/share/nginx/html
|
|
|
|
COPY /nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
EXPOSE 4200 49153
|