Create Dockerfile

This commit is contained in:
ferocknew 2023-12-06 10:30:28 +08:00 committed by GitHub
parent 5be3ce4bb2
commit 7d476e5753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
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
WORKDIR /rustdesk-api-server
ADD . /rustdesk-api-server
VOLUME /rustdesk-api-server/db.sqlite3
ENV HOST 0.0.0.0
ENV TZ=Asia/Shanghai \
DEBIAN_FRONTEND=noninteractive
EXPOSE 21114/tcp
EXPOSE 21114/udp
ENTRYPOINT ["python", "manage.py", "runserver $HOST:21114"]