This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:24-alpine AS builder
|
||||
|
||||
WORKDIR /app/site
|
||||
|
||||
COPY site/package.json site/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY site/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/site/dist/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user