summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 13 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 6f3f8a2..2694202 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,11 +4,20 @@ WORKDIR /app
ENV PATH="${PATH}:/root/.local/bin"
-COPY ./ /app/
+ADD . /app/
-RUN /usr/local/bin/python -m pip install --no-cache-dir --upgrade --quiet pip \
- && pip install --no-cache-dir --upgrade --quiet -r requirements.txt
+EXPOSE 20000
+
+RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && rm -Rf /var/lib/apt/lists/* && apt-get update
+
+RUN apt install curl -y
+
+RUN curl -sSL https://install.python-poetry.org | python3 -
+
+RUN /usr/local/bin/python -m pip install --no-cache-dir --upgrade --quiet pip
+
+RUN poetry install
VOLUME /app/accounts /app/data
-CMD python3 main.py \ No newline at end of file
+CMD poetry run python3 main.py \ No newline at end of file