build twisted as a wheel
This commit is contained in:
parent
fec4374c81
commit
4f97fde073
22
Dockerfile
22
Dockerfile
@ -2,21 +2,10 @@ FROM alpine:3.8 AS builder
|
|||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
alpine-sdk \
|
alpine-sdk \
|
||||||
py3-crypto \
|
python3-dev
|
||||||
py3-zope-interface \
|
|
||||||
python3-dev \
|
|
||||||
py3-setuptools \
|
|
||||||
libtirpc-dev
|
|
||||||
|
|
||||||
RUN adduser -h /var/lib/builder -u 2222 -D -G abuild builder
|
RUN pip3 install wheel
|
||||||
|
RUN pip3 wheel twisted
|
||||||
COPY APKBUILD /var/lib/builder/APKBUILD
|
|
||||||
|
|
||||||
WORKDIR /var/lib/builder/
|
|
||||||
USER builder
|
|
||||||
|
|
||||||
RUN abuild-keygen -a -n
|
|
||||||
RUN abuild -r
|
|
||||||
|
|
||||||
FROM thallian/confd-env:latest
|
FROM thallian/confd-env:latest
|
||||||
|
|
||||||
@ -53,9 +42,10 @@ RUN apk add --no-cache \
|
|||||||
py3-dateutil \
|
py3-dateutil \
|
||||||
py3-ldap3
|
py3-ldap3
|
||||||
|
|
||||||
COPY --from=builder /var/lib/builder/packages/lib/x86_64/py3-twisted-17.1.0-r0.apk /tmp/py3-twisted.apk
|
RUN mkdir /tmp/wheels
|
||||||
RUN apk --allow-untrusted add /tmp/py3-twisted.apk
|
COPY --from=builder /Twisted*.whl /tmp/wheels
|
||||||
|
|
||||||
|
RUN pip3 install /tmp/wheels/*.whl
|
||||||
RUN pip3 install https://github.com/matrix-org/synapse/tarball/$VERSION
|
RUN pip3 install https://github.com/matrix-org/synapse/tarball/$VERSION
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
#!/usr/bin/with-contenv sh
|
||||||
|
|
||||||
cd /var/lib/matrix-synapse
|
cd /var/lib/matrix-synapse
|
||||||
s6-setuidgid matrix-synapse python -B -m synapse.app.homeserver -c server.yaml
|
s6-setuidgid matrix-synapse python3 -B -m synapse.app.homeserver -c server.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user