mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-10 22:02:21 -06:00
ajuste docker
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user