mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-21 20:33:40 +00:00
Saahil
b1fd32ecc6
Co-authored-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
14 lines
272 B
Docker
14 lines
272 B
Docker
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;"]
|