Skip to content

Commit 6f9f87e

Browse files
committed
add libpq5
1 parent 97f582c commit 6f9f87e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Dockerfile

+11-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ ENV PYTHONUNBUFFERED=1 \
1515
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
1616
ENV VIRTUAL_ENV=$VENV_PATH
1717

18+
RUN set -ex \
19+
&& apt-get update \
20+
&& apt-get install --no-install-recommends -y \
21+
libpq5 \
22+
&& rm -rf /var/lib/apt/lists/*
23+
1824

1925
## builder-base image
2026
FROM base as builder-base
21-
RUN apt-get update && \
22-
apt-get install --no-install-recommends -y \
27+
RUN apt-get install --no-install-recommends -y \
2328
curl \
24-
build-essential
29+
build-essential \
30+
libpq-dev \
31+
python3-dev \
32+
&& rm -rf /var/lib/apt/lists/*
2533

2634
RUN --mount=type=cache,target=/root/.cache \
2735
curl -sSL https://install.python-poetry.org | python -

0 commit comments

Comments
 (0)