Files
lunchtime-web/src/frontend/Containerfile
T
Simon Gruber 2e84c75035
Build and Push Lunchtime Images (Kaniko) / build-and-push (push) Has been cancelled
init
2026-03-29 14:59:03 +02:00

25 lines
441 B
Docker

FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . ./
RUN npm run build
FROM node:20-slim
WORKDIR /app
RUN npm install -g http-server
COPY --from=build /app/dist ./
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget -q -O- http://localhost:8000/index.html || exit 1
CMD ["http-server", ".", "-p", "8000", "-c-1", "--gzip", "-P", "http://localhost:8000?"]