From 86559425ca1e3ee890fe3a407ea05d137dbdd19f Mon Sep 17 00:00:00 2001 From: ferocknew Date: Wed, 6 Dec 2023 12:35:03 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d27f71b..17d633b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM python:3.11.7-slim-bullseye - -RUN pip install pip -U -RUN pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple -RUN pip config set install.trusted-host mirrors.cloud.tencent.com +FROM python:3.10.3-slim-bullseye WORKDIR /rustdesk-api-server ADD . /rustdesk-api-server +RUN pip install pip -U -i https://mirrors.cloud.tencent.com/pypi/simple +RUN pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple +RUN pip config set install.trusted-host mirrors.cloud.tencent.com +RUN pip install -r requirements.txt + VOLUME /rustdesk-api-server/db.sqlite3 ENV HOST 0.0.0.0 @@ -16,4 +17,6 @@ ENV TZ=Asia/Shanghai \ EXPOSE 21114/tcp EXPOSE 21114/udp -ENTRYPOINT ["python", "manage.py", "runserver $HOST:21114"] +RUN cd /rustdesk-api-server + +ENTRYPOINT ["bash", "run.sh"]