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.
20 lines
351 B
20 lines
351 B
## STEP 1 BUILD ##
|
|
FROM node:17.0.1-alpine AS build
|
|
|
|
WORKDIR /dist/src/app
|
|
|
|
RUN npm cache clean --force
|
|
|
|
COPY . .
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build --prod
|
|
|
|
## STEP 2 DEPLOY ##
|
|
FROM nginx:1.21.3 AS ngi
|
|
|
|
COPY --from=build /dist/src/app/dist/EPAClient /usr/share/nginx/html
|
|
COPY /nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80 |