From d889df951ce562def6d78cd31a78e5b523326dc8 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Wed, 14 Apr 2021 17:20:15 +0300 Subject: [PATCH] install build-essential on Dockerfile --- Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 458ecdd..887db47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,15 @@ -FROM python:3.9-alpine +FROM python:3.9-slim ENV PYTHONUNBUFFERED 1 WORKDIR /app COPY . ./ ENV POETRY_VERSION=1.1.4 -# Rust and shit https://cryptography.io/en/latest/installation.html -RUN apk --no-cache --update --upgrade add gcc musl-dev python3-dev libffi-dev openssl-dev cargo \ - # Pillow and maybe some unnneeded? - jpeg-dev zlib-dev build-base linux-headers pcre-dev bash \ - # PSQL - && apk add --no-cache postgresql-dev +RUN apt-get update && apt-get install --no-install-recommends -y build-essential -# System deps: RUN pip install -U pip RUN pip install "poetry==$POETRY_VERSION" -# Project initialization: RUN poetry config virtualenvs.create false \ && poetry install --no-dev --no-interaction --no-ansi