|
|
|
@ -4,7 +4,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repo
@@ -4,7 +4,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repo
|
|
|
|
|
|
|
|
|
|
# install required packages |
|
|
|
|
#RUN apk add --no-cache gcc libc-dev libffi-dev openssl openssl-dev python3-dev |
|
|
|
|
RUN apk add --no-cache openrc apache2 apache2-utils apache2-webdav mod_dav_svn subversion |
|
|
|
|
RUN apk add --no-cache apache2 apache2-utils apache2-webdav mod_dav_svn subversion |
|
|
|
|
|
|
|
|
|
# add user that will be used to install and run the application |
|
|
|
|
RUN addgroup -g 1000 deploy |
|
|
|
@ -20,7 +20,6 @@ RUN chown deploy:deploy /var/lib/dav/
@@ -20,7 +20,6 @@ RUN chown deploy:deploy /var/lib/dav/
|
|
|
|
|
# apache should run as user deploy |
|
|
|
|
RUN sed -i.bak -r 's/(User|Group) apache/\1 deploy/' /etc/apache2/httpd.conf |
|
|
|
|
|
|
|
|
|
RUN openrc |
|
|
|
|
RUN touch /run/openrc/softlevel |
|
|
|
|
RUN rc-update add apache2 |
|
|
|
|
RUN rc-service apache2 restart |
|
|
|
|
# copy the script to run httpd in foreground |
|
|
|
|
COPY httpd-foreground /usr/local/bin/ |
|
|
|
|
CMD ["httpd-foreground"] |