diff options
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 |