mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
Merge f96b801fc0
into 39606240da
This commit is contained in:
commit
88b517abd0
11
Dockerfile
11
Dockerfile
@ -1,15 +1,16 @@
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache git ffmpeg wget curl bash openssl
|
||||
apk add --no-cache git ffmpeg wget curl bash openssl dos2unix
|
||||
|
||||
LABEL version="2.3.0" description="Api to control whatsapp features through http requests."
|
||||
LABEL version="2.3.0" description="Api to control whatsapp features through http requests."
|
||||
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
||||
LABEL contact="contato@evolution-api.com"
|
||||
|
||||
WORKDIR /evolution
|
||||
|
||||
COPY ./package.json ./tsconfig.json ./
|
||||
COPY package*.json ./
|
||||
COPY tsconfig.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
@ -20,7 +21,6 @@ COPY ./manager ./manager
|
||||
COPY ./.env.example ./.env
|
||||
COPY ./runWithProvider.js ./
|
||||
COPY ./tsup.config.ts ./
|
||||
|
||||
COPY ./Docker ./Docker
|
||||
|
||||
RUN chmod +x ./Docker/scripts/* && dos2unix ./Docker/scripts/*
|
||||
@ -40,7 +40,6 @@ WORKDIR /evolution
|
||||
|
||||
COPY --from=builder /evolution/package.json ./package.json
|
||||
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
||||
|
||||
COPY --from=builder /evolution/node_modules ./node_modules
|
||||
COPY --from=builder /evolution/dist ./dist
|
||||
COPY --from=builder /evolution/prisma ./prisma
|
||||
@ -55,4 +54,4 @@ ENV DOCKER_ENV=true
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", ". ./Docker/scripts/deploy_database.sh && npm run start:prod" ]
|
||||
ENTRYPOINT ["/bin/bash", "-c", ". ./Docker/scripts/deploy_database.sh && npm run start:prod"]
|
||||
|
Loading…
Reference in New Issue
Block a user