Cephalon-Onni/frontend/Dockerfile
2025-12-16 14:55:18 +01:00

15 lines
335 B
Docker

FROM node:20-alpine AS build
WORKDIR /app
COPY Cephalon-Onni/package*.json ./
RUN npm install
COPY Cephalon-Onni/ .
RUN npm run build
FROM nginx:alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]