Skip to content

Commit d6a1cf6

Browse files
committed
Fix borken install and switch to the new pyscopg3
1 parent 48fc266 commit d6a1cf6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ FROM alpine:latest as dist
44
RUN apk add --no-cache --virtual build-deps gcc python3-dev musl-dev py3-pip py3-wheel postgresql-dev
55
RUN mkdir -p /build/dist
66
WORKDIR /build
7-
RUN pip wheel --wheel-dir=dist psycopg2
7+
RUN pip wheel --wheel-dir=dist psycopg[c]
88
ADD . /build
99
RUN python3 setup.py bdist_wheel
1010

1111
FROM alpine:latest
1212
RUN apk add --no-cache py3-pip libpq
1313
RUN --mount=type=bind,from=dist,src=/build/dist,target=/dist \
14-
pip install /dist/*
14+
pip install --break-system-packages /dist/*
1515

1616
ENTRYPOINT ["holdup"]

0 commit comments

Comments
 (0)