gobang / Dockerfile
zhzabcd's picture
Update Dockerfile
4326e4a verified
raw
history blame contribute delete
381 Bytes
# 使用官方 Python 3 镜像作为基础镜像
FROM python:3.9
# 暴露端口 8000
EXPOSE 8000
USER root
# 设置 pip 使用腾讯云的镜像源
RUN pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
# 安装项目依赖
RUN pip install daphne==3.0.2
# 启动 Daphne 服务器
CMD ["daphne", "-b", "0.0.0.0", "-p", "8000", "server:application"]