start.hackmi.ch/Dockerfile

12 lines
233 B
Text
Raw Normal View History

2024-10-21 16:47:43 +00:00
FROM node:latest as builder
2024-10-21 16:44:28 +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:47:43 +00:00
COPY dist/* /dist/
2024-10-21 16:44:28 +00:00
FROM nginx:stable-alpine-slim
RUN rm -rf /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html
2024-10-21 16:47:43 +00:00
COPY --from=builder /dist/* /usr/share/nginx/html/