Update Dockerfile

This commit is contained in:
omg-xtao 2023-02-10 23:23:35 +08:00 committed by GitHub
parent a4df41bf81
commit 73ce1a1e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ RUN echo "deb http://ftp.us.debian.org/debian buster main non-free" >> /etc/apt/
&& pip install virtualenv poetry \ && pip install virtualenv poetry \
&& python3 -m virtualenv venv/ \ && python3 -m virtualenv venv/ \
&& . venv/bin/activate \ && . venv/bin/activate \
&& poetry config virtualenvs.create false \
&& poetry source add --default mirrors https://pypi.tuna.tsinghua.edu.cn/simple/ \ && poetry source add --default mirrors https://pypi.tuna.tsinghua.edu.cn/simple/ \
&& poetry install \ && poetry install \
&& poetry install --extras all \ && poetry install --extras all \
@ -29,7 +30,8 @@ RUN echo "deb http://ftp.us.debian.org/debian buster main non-free" >> /etc/apt/
/tmp/* \ /tmp/* \
/var/lib/apt/lists/* \ /var/lib/apt/lists/* \
/var/tmp/* \ /var/tmp/* \
~/.cache \ ~/.cache/pip \
~/.cache/pypoetry \
# Add the wait script to the image # Add the wait script to the image
&& wget -O /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait \ && wget -O /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait \
&& chmod +x /wait && chmod +x /wait