Skip to content

Instantly share code, notes, and snippets.

@gesielrosa
Created April 21, 2023 21:13
Show Gist options
  • Save gesielrosa/f616eb63789bdc747636e110279b9762 to your computer and use it in GitHub Desktop.
Save gesielrosa/f616eb63789bdc747636e110279b9762 to your computer and use it in GitHub Desktop.
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