Skip to content

Commit 3a186b4

Browse files
committed
corrected the way avahi and apache/nginx are loaded
1 parent 4684981 commit 3a186b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/web/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN echo "Include /usr/local/apache2/conf/vhost.conf" \
1212
# Copy nginx config
1313
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
1414

15-
# avahi
15+
# setup avahi
1616
RUN printf "[server]\nenable-dbus=no\n" >> /etc/avahi/avahi-daemon.conf
17-
RUN update-rc.d avahi-daemon defaults
17+
18+
# run avahi and the web server
19+
CMD avahi-daemon --daemonize --no-drop-root; httpd -DFOREGROUND || nginx -g "daemon off;"

0 commit comments

Comments
 (0)