mirror of
https://github.com/kingmo888/rustdesk-api-server.git
synced 2026-02-21 10:27:23 +08:00
Update Dockerfile
This commit is contained in:
parent
c244f599ca
commit
86559425ca
15
Dockerfile
15
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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user