mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-06 03:46:40 +08:00
update dockerfile
This commit is contained in:
parent
6262c2d06a
commit
94902e5b04
1 changed files with 10 additions and 6 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,11 +1,15 @@
|
|||
FROM hotio/base:alpine
|
||||
FROM python:3.9-alpine
|
||||
|
||||
# install packages
|
||||
RUN apk add --no-cache gcc g++ libxml2-dev libxslt-dev shadow bash curl wget jq grep sed coreutils findutils unzip p7zip ca-certificates
|
||||
|
||||
COPY requirements.txt /
|
||||
|
||||
RUN apk add --no-cache py3-pip
|
||||
COPY --chown=hotio:users requirements.txt /
|
||||
RUN echo "**** install python packages ****" \
|
||||
&& pip3 install --user --no-cache-dir --upgrade --requirement /requirements.txt \
|
||||
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
||||
&& rm -rf /requirements.txt /tmp/* /var/tmp/*
|
||||
|
||||
COPY --chown=hotio:users . "${APP_DIR}"
|
||||
WORKDIR ${APP_DIR}
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
VOLUME /config
|
||||
ENTRYPOINT ["python3", "qbit_manage.py"]
|
Loading…
Add table
Reference in a new issue