Files
guessit/services/frontend/Dockerfile
2024-01-15 20:49:58 -05:00

13 lines
295 B
Docker

FROM node:lts-alpine as develop-stage
WORKDIR /app
COPY package*.json ./
RUN yarn install
COPY . .
FROM develop-stage as build-stage
RUN yarn build
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]