WUT_Computer_Science/Programming/ERSMS-project/frontend/Dockerfile

19 lines
247 B
Docker
Raw Normal View History

2024-05-12 15:30:17 +02:00
FROM node:18-alpine AS build-stage
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
RUN npm run build
FROM nginx:stable-alpine
COPY --from=build-stage /app/dist /usr/share/nginx/html
2024-06-16 21:21:54 +02:00
EXPOSE 8000
2024-05-12 15:30:17 +02:00
CMD ["nginx", "-g", "daemon off;"]