py12306 Docker & Self-Hosted Deployment

GitHub

12306 购票助手,支持集群,多账号,多任务购票以及 Web 页面管理

14,968 stars Python Python 1 file · ~724 tokens
1. Pull Image (DOCKERHUB) docker pull pjialin/py12306:latest
2. Docker Run (1-Click Launch) docker run -d --name py12306 --restart always pjialin/py12306:latest
3. Podman Run podman run -d --name py12306 --restart always pjialin/py12306:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/pjialin/py12306:latest
5. ORAS Pull (OCI Artifact) oras pull pjialin/py12306:latest
Dockerfile
FROM python:3.6.6-slim

MAINTAINER <pjialin [email protected]>
ENV TZ Asia/Shanghai

WORKDIR /code

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt


RUN mkdir -p /data/query /data/user
VOLUME /data

COPY . .

COPY env.docker.py.example /config/env.py

CMD [ "python", "main.py" , "-c", "/config/env.py"]