11 lines
446 B
Docker
11 lines
446 B
Docker
# 基于python3.6镜像来构建owllook镜像
|
|
FROM python:3.6
|
|
MAINTAINER howie6879 <howie6879@gmail.com>
|
|
ENV TIME_ZONE=Asia/Shanghai
|
|
RUN echo "${TIME_ZONE}" > /etc/timezone \
|
|
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
|
|
ADD . /owllook
|
|
WORKDIR /owllook
|
|
RUN pip install --no-cache-dir --trusted-host mirrors.aliyun.com -i http://mirrors.aliyun.com/pypi/simple/ pipenv
|
|
RUN pipenv install --skip-lock
|
|
RUN find . -name "*.pyc" -delete |