adrian-altner.de/Containerfile
Adrian Altner e69443ea2e
Some checks failed
Deploy / deploy (push) Failing after 25s
refactor: switch to nginx for serving static files and remove Node.js dependencies
2026-04-22 17:16:38 +02:00

23 lines
324 B
Docker

FROM node:22-bookworm-slim AS build
ARG WEBMENTION_TOKEN=""
ENV WEBMENTION_TOKEN=$WEBMENTION_TOKEN
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]