mirror of
https://github.com/alfem/telegram-download-daemon.git
synced 2024-09-20 06:46:05 +08:00
Some fixes to make containers running as non-root users
This commit is contained in:
parent
5132c78e29
commit
6c2eb6585d
|
@ -1,12 +1,13 @@
|
|||
FROM python:3 AS compile-image
|
||||
FROM python:3.10.5 AS compile-image
|
||||
|
||||
RUN pip install --no-cache-dir --user telethon cryptg==0.2
|
||||
RUN pip install --no-cache-dir telethon cryptg==0.2
|
||||
|
||||
FROM python:3-slim AS run-image
|
||||
FROM python:3.10.5-slim AS run-image
|
||||
|
||||
COPY --from=compile-image /root/.local /root/.local
|
||||
COPY --from=compile-image /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||
|
||||
WORKDIR /app
|
||||
COPY *.py ./
|
||||
RUN chmod 777 /app/*.py
|
||||
|
||||
CMD [ "python3", "./telegram-download-daemon.py" ]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
cffi==1.14.0
|
||||
cryptg==0.2.post0
|
||||
cryptg==0.3
|
||||
pyaes==1.6.1
|
||||
pyasn1==0.4.8
|
||||
pycparser==2.20
|
||||
|
|
Loading…
Reference in a new issue