diff --git a/Dockerfile b/Dockerfile index fc535aa2..58633e92 100644 --- a/Dockerfile +++ b/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" ] \ No newline at end of file +ENTRYPOINT ["/bin/bash", "-c", ". ./Docker/scripts/deploy_database.sh && npm run start:prod"]