Enshi/enshi/Dockerfile
2025-01-30 19:31:48 +03:00

18 lines
275 B
Docker

FROM node:18-alpine as builder
WORKDIR /app
ENV VITE_ENV=docker
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 443