feat: docker

This commit is contained in:
Saahil dutta 2024-09-06 22:39:13 -04:00
parent f13a6860f4
commit 896d91a6c0
Signed by: neon
GPG key ID: 8A8B64515254CFC6
4 changed files with 46 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:20-alpine as builder
WORKDIR /app
COPY package*.json .
COPY yarn*.lock .
RUN yarn install
COPY . .
RUN yarn build
#Stage 2
FROM nginx:1.19.0
WORKDIR /usr/share/nginx/html
RUN rm -rf ./*
COPY --from=builder /app/build .
ENTRYPOINT ["nginx", "-g", "daemon off;"]