From 8a45f26d2efec1680738c9da53da0e66719be65a Mon Sep 17 00:00:00 2001 From: kiriharu <38693046+kiriharu@users.noreply.github.com> Date: Wed, 2 Jun 2021 23:51:32 +0300 Subject: [PATCH] Update Dockerfile-api use python:3.9.4-slim-buster img --- apps/Dockerfile-api | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/Dockerfile-api b/apps/Dockerfile-api index 0d90404..48eaaca 100644 --- a/apps/Dockerfile-api +++ b/apps/Dockerfile-api @@ -1,12 +1,10 @@ -FROM python:3.8.3-alpine +FROM python:3.9.4-slim-buster WORKDIR /usr/src/app ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 -RUN apk update \ - && apk add gcc python3-dev musl-dev libffi-dev openssl-dev make g++ - +RUN apt update && apt install gcc -y COPY . . WORKDIR api/api RUN pip install --upgrade pip; pip install poetry; poetry config virtualenvs.create false; poetry install; poetry add uwsgi