Dockerfile
项目根目录下
# 基础镜像
FROM ubuntu
# 镜像作者
MAINTAINER CLWY.Liu 124765984@qq.com
# 安装项目依赖
WORKDIR /var/www/shop
COPY . /var/www/shop/
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
&& apt-get clean \
&& apt-get update \
&& apt-get install -y libmysqlclient-dev python3-pip \
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple \
&& pip3 install -r requirements.txt
生成镜像
docker bui...