start.hackmi.ch/Dockerfile

13 lines
249 B
Text
Raw Normal View History

2024-10-21 16:53:24 +00:00
FROM node:20 AS builder
2024-10-21 16:44:28 +00:00
2024-10-21 16:56:23 +00:00
WORKDIR /app
2024-10-21 17:01:01 +00:00
COPY . .
2024-10-21 16:56:23 +00:00
2024-10-21 16:45:35 +00:00
RUN npm install
2024-10-21 16:44:28 +00:00
RUN npm run build
2024-10-21 16:53:24 +00:00
FROM nginx:stable-alpine-slim AS production
2024-10-21 16:44:28 +00:00
RUN rm -rf /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html
2024-10-21 17:01:01 +00:00
COPY --from=builder /app/dist/ /usr/share/nginx/html/