Update Dockerfile

git add Dockefile
git comit -m ''Corrigido Dockerfile para
build no Railway''
git push origin main
This commit is contained in:
victor-lucrabot 2025-06-25 14:03:12 -03:00 committed by GitHub
parent 39606240da
commit f96b801fc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]