14 lines
313 B
Docker
14 lines
313 B
Docker
|
|
# Build static site
|
||
|
|
FROM node:24-alpine AS build
|
||
|
|
WORKDIR /app
|
||
|
|
COPY package.json package-lock.json* ./
|
||
|
|
RUN npm ci || npm install
|
||
|
|
COPY . .
|
||
|
|
RUN npm run build
|
||
|
|
|
||
|
|
# Serve static output
|
||
|
|
FROM nginx:alpine
|
||
|
|
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
||
|
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||
|
|
EXPOSE 80
|