Files
py12306/Dockerfile
2019-12-31 21:35:56 +08:00

20 lines
302 B
Docker

FROM python:3.6.6-slim
MAINTAINER <pjialin admin@pjialin.com>
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 config.toml.example config.toml
CMD [ "python", "main.py"]