Files
htwkalender/frontend/Dockerfile_prod
Elmar Kresse 89fa8d682a fixed paths
2023-09-20 12:39:46 +02:00

15 lines
327 B
Plaintext

# build stage
FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# production stage
FROM nginx:stable as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8000
CMD ["nginx", "-g", "daemon off;"]