mirror of
https://github.com/xzeldon/zeldon-site.git
synced 2025-07-16 05:34:37 +03:00
refactor: restructure
This commit is contained in:
14
config/Dockerfile
Normal file
14
config/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM node:24-slim as build
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.24-alpine-slim
|
||||
|
||||
COPY config/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /opt/dist /usr/share/nginx/html
|
Reference in New Issue
Block a user