Sfoglia il codice sorgente

Dockerfile: Better handling of entrypoint.sh

Felix Breidenstein 8 anni fa
parent
commit
d3c3cb0c1f
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 1
      Dockerfile
  2. 0 1
      docker/entrypoint.sh

+ 3 - 1
Dockerfile

@@ -18,7 +18,9 @@ RUN apt-get update && apt-get install -y \
 COPY . /var/www/html
 
 # 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
 
 CMD /entrypoint.sh

+ 0 - 1
docker/entrypoint.sh

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