2020-08-07 13:16:17 +08:00
|
|
|
FROM python:3.8.5-slim
|
2020-08-06 17:59:12 +08:00
|
|
|
# FROM ubuntu
|
|
|
|
# RUN apt-get update -y
|
|
|
|
# RUN apt-get install -y python3-pip python-dev build-essential
|
2020-08-06 10:43:35 +08:00
|
|
|
|
2020-08-06 12:37:05 +08:00
|
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
2020-08-06 17:59:12 +08:00
|
|
|
RUN pip3 install poetry
|
2020-08-07 13:16:17 +08:00
|
|
|
WORKDIR /root
|
|
|
|
COPY poetry.lock pyproject.toml /root/
|
2020-08-06 10:43:35 +08:00
|
|
|
|
2020-08-06 12:37:05 +08:00
|
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
RUN poetry install --no-interaction
|
2020-08-07 13:16:17 +08:00
|
|
|
COPY . /root
|
2020-08-06 17:59:12 +08:00
|
|
|
|
|
|
|
# CMD ["bash"]
|