-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 626 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 626 Bytes
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
FROM python:3.12-alpine
WORKDIR /app
COPY locale /app/locale
COPY requirements.txt /tmp/requirements.txt
RUN apk add --no-cache ca-certificates && \
update-ca-certificates
RUN pip install --no-cache-dir -r /tmp/requirements.txt \
&& rm -f /tmp/requirements.txt \
&& mkdir -p /app/data \
&& find /app/locale -name '*.po' -type f -delete
ADD main.py /app
ADD src /app/src
ADD db_migrate /app/db_migrate
ENV TOKEN=""
ENV GROUP_ID=""
ENV LANGUAGE="en_US"
ENV TG_API=""
ENV WORKER="2"
CMD python -u /app/main.py -token "$TOKEN" -group_id "$GROUP_ID" -language "$LANGUAGE" -tg_api "$TG_API" -worker "$WORKER"