summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authoryume233 <[email protected]>2022-10-06 16:02:16 +0800
committeryume233 <[email protected]>2022-10-06 16:02:16 +0800
commit275463bf0be6bf626383bd732ae9d70e117a18ff (patch)
treee77895d38a422c764c83f20d8cd23da5b0c34f4c /Dockerfile
parenta7233d1585a820d6ddcaf883d8d9994c8aaa1c5a (diff)
downloadATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.tar.gz
ATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.tar.bz2
ATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.zip
✨ 新增自动构建docker镜像
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