FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
evolution-api/Dockerfile at develop · evolution-foundation/evolution-api · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
evolution-foundation
/
evolution-api
Public
Notifications
You must be signed in to change notification settings
Fork
7.2k
Star
9.4k
Code
Issues
140
Pull requests
63
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
evolution-api
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
73 lines (52 loc) · 2.19 KB
Breadcrumbs
evolution-api
/
Dockerfile
Copy path
File metadata and controls
73 lines (52 loc) · 2.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM
node:24-alpine AS builder
RUN
apk update && \
apk add --no-cache git ffmpeg wget curl bash openssl
LABEL
version=
"2.3.1"
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 ./
COPY
./tsconfig.json ./
COPY
./tsup.config.ts ./
COPY
./patches ./patches
RUN
npm ci --silent
RUN
npx patch-package
COPY
./src ./src
COPY
./public ./public
COPY
./prisma ./prisma
COPY
./manager ./manager
COPY
./.env.example ./.env
COPY
./runWithProvider.js ./
COPY
./Docker ./Docker
RUN
chmod +x ./Docker/scripts/* && dos2unix ./Docker/scripts/*
RUN
./Docker/scripts/generate_database.sh
#
Licensing endpoint is XOR-encoded into the bundle by tsup `define`. Pass the
#
pair via build-args (NEVER as runtime env vars) to keep the URL out of the
#
compiled JavaScript as a plain literal. Generate them with
#
`node tools/encode-url.js <url>`. Leaving them empty is OK for non-release
#
builds — the dev fallback in src/licensing/endpoint.ts kicks in.
ARG
LICENSE_ENDPOINT_ENCODED
ARG
LICENSE_ENDPOINT_XOR_KEY
ENV
LICENSE_ENDPOINT_ENCODED=${LICENSE_ENDPOINT_ENCODED}
ENV
LICENSE_ENDPOINT_XOR_KEY=${LICENSE_ENDPOINT_XOR_KEY}
RUN
NODE_OPTIONS=
"--max-old-space-size=2048"
npm run build
FROM
node:24-alpine AS final
RUN
apk update && \
apk add tzdata ffmpeg bash openssl
ENV
TZ=America/Sao_Paulo
ENV
DOCKER_ENV=true
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
COPY
--from=builder /evolution/manager ./manager
COPY
--from=builder /evolution/public ./public
COPY
--from=builder /evolution/.env ./.env
COPY
--from=builder /evolution/Docker ./Docker
COPY
--from=builder /evolution/runWithProvider.js ./runWithProvider.js
COPY
--from=builder /evolution/tsup.config.ts ./tsup.config.ts
ENV
DOCKER_ENV=true
EXPOSE
8080
ENTRYPOINT
[
"/bin/bash"
,
"-c"
,
". ./Docker/scripts/deploy_database.sh && npm run start:prod"
]
Back
|
FazBrowse Home
|
New Git URL