From 8257eebf6abe560057b268650f2425d429e1c4f4 Mon Sep 17 00:00:00 2001 From: 88lex Date: Fri, 7 Aug 2020 13:16:17 +0800 Subject: [PATCH] change docker base image --- Dockerfile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d090363..f8d87a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file