Browse Source

update dockerfiles

main
Markus Bergholz 2 months ago
parent
commit
4a46a74679
Signed by: m GPG Key ID: B45724801354B174
2 changed files with 7 additions and 23 deletions
  1. +2
    -18
      roles/containers/files/coturn.Dockerfile
  2. +5
    -5
      roles/containers/files/nextcloud.Dockerfile

+ 2
- 18
roles/containers/files/coturn.Dockerfile View File

@ -1,20 +1,4 @@
FROM alpine:3.12
FROM alpine:3.13
RUN apk add --update coturn
CMD turnserver --prod --no-tlsv1 --no-tlsv1_1\
--tls-listening-port 5349 \
--listening-ip=0.0.0.0 \
--relay-ip=0.0.0.0 \
--fingerprint \
--lt-cred-mech \
--use-auth-secret \
--static-auth-secret $STATIC_SECRET \
--realm $REALM \
--total-quota 100 \
--bps-capacity=50000000 \
--max-bps=50000000 \
--stale-nonce=600 \
--cert /cert.pem \
--pkey /privkey.pem \
--cipher-list “ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384″ \
--no-multicast-peers
CMD turnserver -c /etc/turnserver.conf

+ 5
- 5
roles/containers/files/nextcloud.Dockerfile View File

@ -1,7 +1,7 @@
#
# Use a temporary image to compile and test the libraries
#
FROM nextcloud:20.0.3 as builder
FROM nextcloud21:latest as builder
# Build and install dlib on builder
@ -49,7 +49,7 @@ RUN git clone https://github.com/matiasdelellis/pdlib-min-test-suite.git \
# If pass the tests, we are able to create the final image.
#
FROM nextcloud:20.0.3
FROM nextcloud21:latest
# Install dependencies to image
@ -62,19 +62,19 @@ COPY --from=builder /usr/local/lib/libdlib.so* /usr/local/lib/
# If is necesary take the php extention folder uncommenting the next line
# RUN php -i | grep extension_dir
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20200930/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
# Enable PDlib on final image
RUN echo "extension=pdlib.so" > /usr/local/etc/php/conf.d/pdlib.ini
# Increse memory limits
RUN echo memory_limit=1024M > /usr/local/etc/php/conf.d/memory-limit.ini
RUN sed -i 's/memory_limit=512M/memory_limit=1G/' /usr/local/etc/php/conf.d/memory-limit.ini
RUN sed -i 's/LogFormat "%h/LogFormat "%{X-Forwarded-For}i/' /etc/apache2/apache2.conf
RUN sed -i 's/ServerTokens OS/ServerTokens Prod/' /etc/apache2/conf-available/security.conf
RUN sed -i 's/expose_php = On/expose_php = Off/' /usr/local/etc/php/php.ini-production
RUN sed -i 's/output_buffering = 4096/output_buffering = Off/' /usr/local/etc/php/php.ini-production
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apt update && apt install -y libbz2-dev


Loading…
Cancel
Save