mancala/apps/frontend/Dockerfile

26 lines
351 B
Docker
Raw Normal View History

2024-10-04 23:31:55 +03:00
FROM node:20-alpine3.19 AS build
2024-12-08 23:24:22 +03:00
ARG SERVER_ADDRESS WS_SERVER_ADDRESS
2024-10-04 23:31:55 +03:00
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;"]