diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d219ebf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +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 +ENV TZ=Asia/Shanghai \ + DEBIAN_FRONTEND=noninteractive + +EXPOSE 21114/tcp +EXPOSE 21114/udp + +RUN cd /rustdesk-api-server + +ENTRYPOINT ["bash", "run.sh"] \ No newline at end of file diff --git a/README.md b/README.md index 39bc2fe..f6c31b9 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ from pysqlite3 import dbapi2 as Database # 启用pysqlite3 #### Docker方式 +`docker compose --compatibility up --build -d;` ### 计划开发