FROM python:3.6.6-slim MAINTAINER ENV TZ Asia/Shanghai WORKDIR /code COPY requirements.txt . RUN apt-get update \ && apt-get install -y --no-install-recommends gcc python-dev \ && rm -rf /var/lib/apt/lists/* \ && pip install --no-cache-dir -r requirements.txt \ && apt-get purge -y --auto-remove gcc python-dev VOLUME /code/data COPY . . COPY config.toml.example config.toml CMD [ "python", "main.py"]