change docker base image

This commit is contained in:
88lex 2020-08-07 13:16:17 +08:00
parent 85d7301c39
commit 8257eebf6a

View file

@ -1,22 +1,15 @@
FROM python:3.8.5-buster
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 MAX_PROJECTS=100
ENV SAS_PER_PROJECT=100
ENV EMAIL_PREFIX=svcacc
ENV PROJECT_PREFIX=UniqPrefix
ENV JSON_PREFIX=svcacc
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
RUN pip3 install poetry
WORKDIR /opt
COPY poetry.lock pyproject.toml /opt/
WORKDIR /root
COPY poetry.lock pyproject.toml /root/
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction
COPY . /opt
COPY . /root
# CMD ["bash"]