Files
evil-wordle/Dockerfile
Space-Banane 263169a7f0
All checks were successful
test-build-publish / docker (push) Successful in 1m41s
Reduce nginx container log noise
2026-05-14 19:12:33 +02:00

20 lines
435 B
Docker

FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
FROM deps AS ci
COPY . .
RUN npm run lint
RUN npm run build
FROM deps AS build
COPY . .
RUN npm run build
FROM nginx:1.27-alpine
RUN sed -i 's#error_log /var/log/nginx/error.log notice;#error_log /var/log/nginx/error.log warn;#' /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80