Skip to content

Commit 913b4f9

Browse files
committed
fix psycopg2 for PyPy docker image
1 parent 1e6b0f3 commit 913b4f9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ WORKDIR /synapse
6666
COPY pyproject.toml poetry.lock /synapse/
6767

6868

69-
# Patch for pypy
70-
RUN sed -i -e '302s|"pympler"|#"pympler"|' pyproject.toml
71-
7269
# Install custom extensions
7370
RUN /root/.local/bin/poetry add --lock -- \
7471
"git+https://github.com/devture/matrix-synapse-shared-secret-auth#master" \
@@ -194,6 +191,11 @@ COPY --from=builder /install /opt/pypy
194191
COPY ./docker/start.py /start.py
195192
COPY ./docker/conf /conf
196193

194+
195+
# Patch for pypy
196+
RUN pip uninstall -y psycopg2 pympler
197+
198+
197199
EXPOSE 8008/tcp 8009/tcp 8448/tcp
198200

199201
ENTRYPOINT ["/start.py"]

0 commit comments

Comments
 (0)