diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -52,8 +52,11 @@ RUN echo 'Listen ${APACHE_PORT}' > /etc/apache2/ports.conf && \ COPY cgitrc /etc/ COPY apache.conf /etc/apache2/sites-enabled/ -ENV APACHE_PORT=8080 +ENV APACHE_PORT=80 ENV APACHE_RUN_DIR=/dev/shm ENV APACHE_SERVER_NAME=cgit +RUN getent group www-data >/dev/null || addgroup --system --gid 33 www-data \ + && getent passwd www-data >/dev/null || adduser --system --uid 33 --ingroup www-data --no-create-home www-data + ENTRYPOINT ["/sbin/apache2", "-D", "FOREGROUND"] |