mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-05-10 15:43:06 +00:00
feat: docker (#5)
Co-authored-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
c9b4566e1d
commit
b1fd32ecc6
5 changed files with 86 additions and 43 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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;"]
|
Loading…
Add table
Add a link
Reference in a new issue