From 94902e5b045503719c3b47603a8b84384b4c0400 Mon Sep 17 00:00:00 2001 From: bobokun Date: Sun, 2 Jan 2022 12:14:26 -0500 Subject: [PATCH] update dockerfile --- Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83df919..00d769d 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file