Files
clipperia/Dockerfile
2025-11-03 01:06:27 -03:00

24 lines
355 B
Docker

FROM node:24-alpine AS build
WORKDIR /app
RUN npm install -g pnpm
COPY . .
RUN pnpm install
ARG BASE=/
ENV VITE_BASE_PATH=$BASE
RUN pnpm run build
RUN rm -rf node_modules
FROM nginx:1.27-alpine
RUN mkdir -p /var/cache/nginx /var/run/nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80