Dockerfile: Better handling of entrypoint.sh

This commit is contained in:
Felix Breidenstein 2018-02-20 12:23:52 +01:00
parent 8c19e869b7
commit d3c3cb0c1f
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,9 @@ RUN apt-get update && apt-get install -y \
COPY . /var/www/html COPY . /var/www/html
# Copy start script # Copy start script
COPY docker/entrypoint.sh / RUN mv /var/www/html/docker/entrypoint.sh / && \
rm -r /var/www/html/docker
VOLUME /var/www/html/data VOLUME /var/www/html/data
CMD /entrypoint.sh CMD /entrypoint.sh

View File

@ -1,5 +1,4 @@
#! /bin/sh #! /bin/sh
chown -R www-data /var/www/html/data chown -R www-data /var/www/html/data
rm -r /var/www/html/docker
apache2-foreground apache2-foreground