From 3f88748eb8aa230a394f001d1e215c921367504f Mon Sep 17 00:00:00 2001 From: Marcos Date: Sun, 22 Mar 2026 17:13:50 -0300 Subject: [PATCH] =?UTF-8?q?Add=20Dockerfile=20para=20Build=20Vite=20Autom?= =?UTF-8?q?=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f08a8a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Estágio de Build +FROM node:18-alpine as build-stage +WORKDIR /app +COPY package*.json ./ +RUN npm install --frozen-lockfile || npm install +COPY . . +RUN npm run build + +# Estágio de Produção +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /app/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"]