Commit 5e30584b by Christophe Angeli

add some services

parent 02be5038
......@@ -23,13 +23,9 @@ RUN apk add --update \
rm -rf /var/cache/apk/*
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.19.1.1/s6-overlay-amd64.tar.gz /tmp/
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / && \
mkdir -p /etc/services.d/nginx/finish && \
mkdir -p /etc/services.d/nginx/run && \
mkdir -p /etc/services.d/postfix/finish && \
mkdir -p /etc/services.d/postfix/run && \
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
COPY services.d /
# deploy app and extensions
RUN curl -L -s -o /tmp/restyaboard.zip https://github.com/RestyaPlatform/board/releases/download/${RESTYABOARD_VERSION}/board-${RESTYABOARD_VERSION}.zip && \
......
......@@ -85,6 +85,8 @@ if [ "$1" = 'start' ]; then
# tail log
exec tail -f /var/log/nginx/access.log /var/log/nginx/error.log
/init
fi
exec "$@"
#!/usr/bin/with-contenv sh
#!/bin/sh
exec nginx -g 'daemon off;'
#!/bin/sh
exec /usr/bin/php-fpm -R --nodaemonize --force-stderr --fpm-config /etc/php/php-fpm.conf --pid /var/run/php-fpm.pid
\ No newline at end of file
#!/bin/sh
command_directory=$(postconf -h command_directory)
daemon_directory=$($command_directory/postconf -h daemon_directory)
# make consistency check
$command_directory/postfix check 2>&1
# run Postfix
exec $daemon_directory/master -d
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment