mirror of
https://github.com/xzeldon/zeldon-site.git
synced 2025-07-16 06:54:36 +03:00
add docker
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM node:20-slim as build
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
COPY ./package.json /opt/package.json
|
||||
COPY ./package-lock.json /opt/package-lock.json
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.24-alpine-slim
|
||||
|
||||
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /opt/dist /usr/share/nginx/html
|
Reference in New Issue
Block a user