2 Star 73 Fork 12

ylb / gitee-pages-action

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 381 Bytes
一键复制 编辑 原始数据 按行查看 历史
ylb 提交于 2021-11-19 14:30 . chore: update Dockerfile
FROM python:3-slim AS builder
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY . /app
WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install --upgrade pip
RUN pip install --target=/app -r requirements.txt
FROM gcr.io/distroless/python3
COPY --from=builder /app /app
WORKDIR /app
ENV PYTHONPATH /app
CMD ["/app/main.py"]
Python
1
https://gitee.com/yanglbme/gitee-pages-action.git
git@gitee.com:yanglbme/gitee-pages-action.git
yanglbme
gitee-pages-action
gitee-pages-action
main

搜索帮助