mancala/apps/frontend/Dockerfile

24 lines
313 B
Docker
Raw Normal View History

2024-10-04 23:31:55 +03:00
FROM node:20-alpine3.19 AS build
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY . ./
RUN yarn build
FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]