pplx2api / Dockerfile
smgc's picture
Update Dockerfile
9842a1b verified
raw
history blame
No virus
460 Bytes
# 使用官方 Python 运行时作为父镜像
FROM python:3.9-slim
# 设置工作目录
WORKDIR /app
# 将当前目录内容复制到容器的 /app 中
COPY . /app
# 安装依赖
RUN pip install --no-cache-dir flask python-socketio aiohttp aiohttp_socks requests websocket-client
# 让端口 8081 可以从容器外部访问
EXPOSE 8081
# 定义环境变量
ENV PPLX_KEY=""
ENV PPLX_COOKIE=""
ENV USER_AGENT=""
ENV PROXY_URL=""
CMD ["python", "app.py"]