Some fixes to make containers running as non-root users

This commit is contained in:
Alfonso De Cala Bravo 2022-07-07 14:39:35 +02:00
parent 5132c78e29
commit 6c2eb6585d
2 changed files with 6 additions and 5 deletions

View file

@ -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" ]

View file

@ -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