Rework the build and include coturn and riot web

This commit is contained in:
Vladan Popovic 2021-02-06 00:42:54 +01:00
parent d56dbacde6
commit d9214e47b5
11 changed files with 84 additions and 42 deletions

View file

@ -0,0 +1,13 @@
#!/bin/sh
apk --no-cache add --no-scripts --no-commit-hooks synapse
find /usr -name "__pycache__" -exec rm -rf {} +
find /usr -name "*.pyc" -exec rm {} +
apk del alpine-keys
rm -rf /etc/apk \
/root/.cache \
/root/.config \
/var/cache/*

View file

@ -13,21 +13,20 @@ apk --no-cache add --virtual .synapse-build \
py3-pip \
zlib-dev
pip3 install --upgrade pip setuptools
pip3 install --upgrade --force pip setuptools
pip3 install https://github.com/matrix-org/synapse/tarball/master
apk del .synapse-build
# Runtime packages.
# Runtime packages
apk --no-cache add \
libjpeg-turbo \
libmagic \
libressl2.7-libssl \
libressl \
python3
find /usr -name "__pycache__" -exec rm -rf {} +
find /usr -name "*.pyc" -exec rm {} +
find /usr -name "*yarn*" -exec rm -rf {} +
apk del alpine-keys

View file

@ -0,0 +1,10 @@
#!/bin/sh
apk --no-cache add --no-scripts --no-commit-hooks riot-web nginx
apk del alpine-keys
rm -rf /etc/apk \
/root/.cache \
/root/.config \
/var/cache/*

View file

@ -0,0 +1,15 @@
#!/bin/sh
apk add --no-cache --purge -uU \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
coturn sqlite-libs
find /usr -name "__pycache__" -exec rm -rf {} +
find /usr -name "*.pyc" -exec rm {} +
apk del alpine-keys
rm -rf /etc/apk \
/root/.cache \
/root/.config \
/var/cache/*

View file

@ -1,16 +0,0 @@
#!/bin/sh
apk --no-cache add --no-scripts --no-commit-hooks --initramfs-diskless-boot synapse
find /usr -name "__pycache__" -exec rm -rf {} +
find /usr -name "*.pyc" -exec rm {} +
apk del alpine-keys alpine-baselayout
rm -rf /etc/apk \
/etc/ssl \
/etc/terminfo \
/etc/synapse \
/root/.cache \
/root/.config \
/var/cache/*