generated from container/tmpl
Julin
2 years ago
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
FROM python:3.8 AS python_base |
|||
|
|||
WORKDIR /app |
|||
|
|||
COPY . . |
|||
|
|||
RUN pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ |
|||
pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com && \ |
|||
cp SimHei.ttf /usr/local/lib/python3.8/site-packages/matplotlib/mpl-data/fonts/ttf && \ |
|||
pyinstaller -F main.py --distpath=. |
|||
|
|||
FROM debian:11-slim |
|||
|
|||
WORKDIR /app |
|||
|
|||
COPY --from=python_base /app/main /app/config.ini ./ |
|||
|
|||
CMD ["./main"] |
Loading…
Reference in new issue