2025SELab2-project-Dwengo/frontend/frontend.dockerfile
Timo De Meyst 987036946e chore: frontend docker setup
.dockerignore en .dockerfile van de frontend ingesteld
2025-03-07 16:04:46 +01:00

13 lines
No EOL
278 B
Docker

# build stage
FROM node:22 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]