Created
April 21, 2023 21:13
-
-
Save gesielrosa/f616eb63789bdc747636e110279b9762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12.22-alpine3.15 AS build | |
WORKDIR /app/acvali-backoffice | |
RUN npm cache clean --force | |
COPY . . | |
RUN npm install --legacy-peer-deps | |
RUN npm run build:prod -- --base-href /backoffice/ | |
FROM nginx:alpine AS ngi | |
COPY --from=build /app/acvali-backoffice/dist /usr/share/nginx/html | |
COPY nginx.conf /etc/nginx/conf.d/default.conf | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment