From f8a38b698b7c1e9fe066f73ef3755bdf7600314d Mon Sep 17 00:00:00 2001 From: Hiller Liao Date: Sun, 30 Jan 2022 16:30:49 +0800 Subject: [PATCH] update dockerfile --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6dea47f..0dcef54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,13 @@ # 使用基础镜像库 -FROM moshangguang/nginx_uwsgi_py3:alpine3.8 +FROM alpine:3.8 +RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories +RUN apk add --no-cache vim nginx python3 uwsgi uwsgi-python3 +RUN apk add --update --upgrade +RUN apk add --no-cache nginx python3 uwsgi uwsgi-python3 +RUN pip3 install --no-cache-dir --upgrade pip +RUN ln -s /usr/bin/python3 /usr/bin/python + + # 创建工作路径 RUN mkdir /app