dockerfile from master 1activegeek

This commit is contained in:
88lex 2020-08-07 14:00:03 +08:00
parent 8257eebf6a
commit 05d0f341dd

View file

@ -1,15 +1,8 @@
FROM python:3.8.5-slim
# FROM ubuntu
# RUN apt-get update -y
# RUN apt-get install -y python3-pip python-dev build-essential
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
RUN pip3 install poetry
WORKDIR /root
COPY poetry.lock pyproject.toml /root/
COPY requirements.txt /requirements.txt
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction
COPY . /root
RUN pip3 install -r /requirements.txt && \
pip3 install safire
# CMD ["bash"]
WORKDIR /root/