简易打包
FROM python:3.7
MAINTAINER kinoko
ADD ./python-project /code
WORKDIR /code
# 安装运行库
RUN pip install -r requirements.txt \
&& pip list
CMD [ "python","run.py" ]
ENV TZ=Asia/Shanghai
USER root
文章 | 评论 | 标签 |
---|---|---|
19 | 0 | 14 |
FROM python:3.7
MAINTAINER kinoko
ADD ./python-project /code
WORKDIR /code
# 安装运行库
RUN pip install -r requirements.txt \
&& pip list
CMD [ "python","run.py" ]
ENV TZ=Asia/Shanghai
USER root