mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00

In this commit, the following changes were made: - Updated the version of the project to 2.0.4-beta. - Added the new manager with version 2.0.0. - Updated the Baileys version. - Modified several files such as CHANGELOG.md, Dockerfile, package.json, src/api/routes/index.router.ts, and src/api/routes/view.router.ts. - Deleted the views/manager.hbs file and added the manager/ folder. These changes update the dependencies and include a new manager, which may impact the application's functionality.
53 lines
1.3 KiB
Docker
53 lines
1.3 KiB
Docker
FROM node:20-alpine AS builder
|
|
|
|
RUN apk update && \
|
|
apk add git ffmpeg wget curl bash
|
|
|
|
LABEL version="2.0.4-beta" description="Api to control whatsapp features through http requests."
|
|
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
|
LABEL contact="contato@agenciadgcode.com"
|
|
|
|
WORKDIR /evolution
|
|
|
|
COPY ./package.json ./tsconfig.json ./
|
|
|
|
RUN npm install
|
|
|
|
COPY ./src ./src
|
|
COPY ./public ./public
|
|
COPY ./prisma ./prisma
|
|
COPY ./manager ./manager
|
|
COPY ./.env.example ./.env
|
|
|
|
COPY ./Docker ./Docker
|
|
|
|
RUN chmod +x ./Docker/scripts/* && dos2unix ./Docker/scripts/*
|
|
|
|
RUN ./Docker/scripts/generate_database.sh
|
|
|
|
RUN npm run build
|
|
|
|
FROM node:20-alpine AS final
|
|
|
|
RUN apk update && \
|
|
apk add tzdata ffmpeg bash
|
|
|
|
ENV TZ=America/Sao_Paulo
|
|
|
|
WORKDIR /evolution
|
|
|
|
COPY --from=builder /evolution/package.json ./package.json
|
|
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
|
|
|
RUN npm install --omit=dev
|
|
|
|
COPY --from=builder /evolution/dist ./dist
|
|
COPY --from=builder /evolution/prisma ./prisma
|
|
COPY --from=builder /evolution/manager ./manager
|
|
COPY --from=builder /evolution/public ./public
|
|
COPY --from=builder /evolution/.env ./.env
|
|
COPY --from=builder /evolution/Docker ./Docker
|
|
|
|
ENV DOCKER_ENV=true
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c", ". ./Docker/scripts/deploy_database.sh && npm run start:prod" ] |