use user uid 1000

This commit is contained in:
2023-12-27 23:59:40 +00:00
parent 109e06a5d6
commit 9c248a194d
2 changed files with 11 additions and 3 deletions

View File

@@ -13,4 +13,12 @@ RUN apt update && apt install -y ffmpeg libsm6 libxext6
COPY src .
COPY best.pt /best.pt
RUN chown -R 1000 /usr/src/app
RUN mkdir /.config
RUN mkdir /.cache
RUN chown -R 1000 /.config
RUN chown -R 1000 /.cache
USER 1000
CMD [ "gunicorn", "-b 0.0.0.0:80", "--workers", "1", "app:app" ]