dauntless/Dockerfile
Github Readme Stats Bot f0a765cdf7 docker compose
2026-03-09 07:30:02 -06:00

16 lines
376 B
Docker

# build with nodejs
FROM node:25.8-bullseye-slim AS build
ENV NODE_ENV production
WORKDIR /app
COPY . /app
RUN mkdir -p dist node_modules
RUN chown -R node:node .
USER node
RUN NODE_ENV=development npm i
RUN npx quartz build
# serve compiled files with local nginx config
FROM nginx:alpine
WORKDIR /app
COPY --from=build /app/public .
COPY ./nginx.conf /etc/nginx/nginx.conf