push to v1.27.0

This commit is contained in:
Sebastian Hugentobler 2021-02-23 22:51:10 +01:00
parent 2ff69b5349
commit 076ffd923c
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
3 changed files with 7 additions and 11 deletions

View File

@ -12,8 +12,7 @@ RUN apk add --no-cache \
jpeg-dev \
cargo
RUN pip3 install wheel
RUN pip3 wheel matrix-synapse==$VERSION
RUN pip3 install --target="/install" matrix-synapse==$VERSION
FROM thallian/confd-env:latest
@ -23,19 +22,16 @@ RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synap
RUN apk add --no-cache \
python3 \
py3-pip \
py3-psycopg2 \
py3-jinja2 \
py3-authlib \
#py3-psycopg2 \
#py3-jinja2 \
#py3-authlib \
libffi \
openssl \
zlib \
jpeg
RUN mkdir /tmp/wheels
COPY --from=builder /*.whl /tmp/wheels/
RUN pip3 install /tmp/wheels/*.whl
ENV PYTHONPATH=$PYTHONPATH:/py-pkgs
COPY --from=builder /install /py-pkgs
ADD /rootfs /

View File

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv sh
if [ ! -f /var/lib/matrix-synapse/signing/signing.key ]; then
s6-setuidgid matrix-synapse python -B -m synapse.app.homeserver -c /var/lib/matrix-synapse/server.yaml --generate-config -H $SERVER_NAME --report-stats=no
s6-setuidgid matrix-synapse python3 -B -m synapse.app.homeserver -c /var/lib/matrix-synapse/server.yaml --generate-config -H $SERVER_NAME --report-stats=no
fi