ajuste docker

This commit is contained in:
Thiago Borges
2025-07-04 14:10:22 -03:00
parent 427c994993
commit 94d9342aa5
3 changed files with 24 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
FROM node:20-alpine AS builder
FROM node:20-alpine AS base
RUN apk update && \
apk add git ffmpeg wget curl bash openssl
@@ -9,6 +9,8 @@ LABEL contact="contato@atendai.com"
WORKDIR /evolution
FROM base AS builder
COPY ./package.json ./tsconfig.json ./
RUN npm install
@@ -29,6 +31,17 @@ RUN ./Docker/scripts/generate_database.sh
RUN npm run build
FROM base AS dev
RUN apk update && \
apk add git ffmpeg wget curl bash openssl
COPY . .
RUN npm install
ENTRYPOINT ["/bin/bash", "-c", "npm run dev:server" ]
FROM node:20-alpine AS final
RUN apk update && \