Compare commits

..

No commits in common. "02f5a04e9934c7564202af9d63b28a7f1404d1f9" and "c2095d0b13f94f1d4fa3bdfdda460be49320c0fb" have entirely different histories.

View file

@ -1,21 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
# Remove default Nginx index page
RUN rm -rf /usr/share/nginx/html/*
# Copy built files from build stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
# Use a non-root user for security
USER nginx
CMD ["nginx", "-g", "daemon off;"]