mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-17 04:32:53 -06:00
Update Dockerfile
git add Dockefile git comit -m ''Corrigido Dockerfile para build no Railway'' git push origin main
This commit is contained in:
parent
39606240da
commit
f96b801fc0
@ -1,7 +1,7 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
RUN apk update && \
|
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 maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
||||||
@ -9,7 +9,8 @@ LABEL contact="contato@evolution-api.com"
|
|||||||
|
|
||||||
WORKDIR /evolution
|
WORKDIR /evolution
|
||||||
|
|
||||||
COPY ./package.json ./tsconfig.json ./
|
COPY package*.json ./
|
||||||
|
COPY tsconfig.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
@ -20,7 +21,6 @@ COPY ./manager ./manager
|
|||||||
COPY ./.env.example ./.env
|
COPY ./.env.example ./.env
|
||||||
COPY ./runWithProvider.js ./
|
COPY ./runWithProvider.js ./
|
||||||
COPY ./tsup.config.ts ./
|
COPY ./tsup.config.ts ./
|
||||||
|
|
||||||
COPY ./Docker ./Docker
|
COPY ./Docker ./Docker
|
||||||
|
|
||||||
RUN chmod +x ./Docker/scripts/* && dos2unix ./Docker/scripts/*
|
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.json ./package.json
|
||||||
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
||||||
|
|
||||||
COPY --from=builder /evolution/node_modules ./node_modules
|
COPY --from=builder /evolution/node_modules ./node_modules
|
||||||
COPY --from=builder /evolution/dist ./dist
|
COPY --from=builder /evolution/dist ./dist
|
||||||
COPY --from=builder /evolution/prisma ./prisma
|
COPY --from=builder /evolution/prisma ./prisma
|
||||||
@ -55,4 +54,4 @@ ENV DOCKER_ENV=true
|
|||||||
|
|
||||||
EXPOSE 8080
|
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