Skip to content

Commit

Permalink
fix psycopg2 for PyPy docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
yingziwu committed Jun 2, 2023
1 parent 1e6b0f3 commit 913b4f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ WORKDIR /synapse
COPY pyproject.toml poetry.lock /synapse/


# Patch for pypy
RUN sed -i -e '302s|"pympler"|#"pympler"|' pyproject.toml

# Install custom extensions
RUN /root/.local/bin/poetry add --lock -- \
"git+https://github.com/devture/matrix-synapse-shared-secret-auth#master" \
Expand Down Expand Up @@ -194,6 +191,11 @@ COPY --from=builder /install /opt/pypy
COPY ./docker/start.py /start.py
COPY ./docker/conf /conf


# Patch for pypy
RUN pip uninstall -y psycopg2 pympler


EXPOSE 8008/tcp 8009/tcp 8448/tcp

ENTRYPOINT ["/start.py"]
Expand Down

0 comments on commit 913b4f9

Please sign in to comment.