Skip to content

Commit

Permalink
Updating dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
karllhughes committed Jun 6, 2018
1 parent 780ca1e commit 1299c14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Expand Up @@ -2,14 +2,20 @@ FROM nginx:1.15

MAINTAINER Karl Hughes <khughes.me@gmail.com>

ENV DATA_DIR /var/www

ADD start.sh /usr/local/bin/

ONBUILD ADD conf /etc/nginx/conf.d/
ADD conf /etc/nginx/conf.d/

# Disable daemon mode
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
# Backup configs
cp -a /etc/nginx/conf.d /etc/nginx/.conf.d.orig && \
rm -f /etc/nginx/conf.d/default.conf
rm -f /etc/nginx/conf.d/default.conf && \
# Make sure the data directory is created and ownership correct
mkdir -p $DATA_DIR && \
chown -R www-data:www-data $DATA_DIR

WORKDIR /etc/nginx

Expand Down
File renamed without changes.

0 comments on commit 1299c14

Please sign in to comment.