-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 795 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
27
28
29
FROM python:3.14-alpine AS builder
RUN apk update && \
apk add --no-cache git gcc g++ musl-dev
COPY requirements-extra.txt ./
RUN pip wheel --wheel-dir=/root/wheels -r requirements-extra.txt
FROM python:3.14-alpine
WORKDIR /home/textUtilsBot
COPY requirements.txt requirements-extra.txt requirements-proxy.txt ./
COPY --from=builder /root/wheels ./wheels
RUN apk update && \
apk add --no-cache git libstdc++ rclone su-exec
RUN pip install -r requirements.txt -r requirements-proxy.txt
RUN pip install --no-index --find-links=./wheels -r requirements-extra.txt \
&& rm -r ./wheels
COPY docker/backup.sh /docker/backup.sh
COPY docker/entrypoint.sh /docker/entrypoint.sh
RUN chmod +x /docker/backup.sh /docker/entrypoint.sh
COPY app ./app
ENTRYPOINT ["/docker/entrypoint.sh"]