homepage/Dockerfile

9 lines
211 B
Text
Raw Normal View History

2024-01-31 15:38:53 +01:00
FROM node:lts-alpine AS build
2024-01-31 14:55:55 +01:00
WORKDIR /app
2024-01-31 15:38:53 +01:00
COPY package.json package-lock.json .
RUN npm install --production && \
npm run build
2024-01-31 14:55:55 +01:00
2024-01-31 15:38:53 +01:00
FROM nginx:alpine AS serve
COPY --from=build /app/dist /usr/share/nginx/html