diff --git a/Dockerfile b/Dockerfile index b8c6bddd..e35bdb58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # `python-base` sets up all our shared environment variables -FROM python:3.10-alpine as python-base +FROM python:3.10 as python-base # python ENV PYTHONUNBUFFERED=1 \ @@ -34,11 +34,11 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:/root/.cargo/bin:$PATH" # `builder-base` stage is used to build deps + create our virtual environment FROM python-base as builder-base -RUN apk upgrade --no-cache -RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev curl libgcc libstdc++ postgresql-libs postgresql-dev +RUN apt-get update +RUN apt-get install -y gcc python3-dev libffi-dev libssl-dev curl libgcc-8-dev libstdc++-8-dev libpq-dev postgresql-client && \ + rm -rf /var/lib/apt/lists/* RUN curl https://sh.rustup.rs -sSf | \ sh -s -- --default-toolchain stable -y -RUN rm -rf /var/cache/apt/* # install poetry - respects $POETRY_VERSION & $POETRY_HOME RUN curl -sSL https://install.python-poetry.org | python -