Adiciona docker e nginx

This commit is contained in:
LeoMortari
2025-11-03 00:51:14 -03:00
parent e95d33f172
commit fa2b9df45b
4 changed files with 62 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev=false
COPY . .
ARG BASE=/
ENV VITE_BASE_PATH=$BASE
RUN npm run build
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80