diff options
author | yume233 <[email protected]> | 2022-10-06 16:02:16 +0800 |
---|---|---|
committer | yume233 <[email protected]> | 2022-10-06 16:02:16 +0800 |
commit | 275463bf0be6bf626383bd732ae9d70e117a18ff (patch) | |
tree | e77895d38a422c764c83f20d8cd23da5b0c34f4c /Dockerfile | |
parent | a7233d1585a820d6ddcaf883d8d9994c8aaa1c5a (diff) | |
download | ATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.tar.gz ATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.tar.bz2 ATRI-275463bf0be6bf626383bd732ae9d70e117a18ff.zip |
✨ 新增自动构建docker镜像
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 |