diff --git a/Dockerfile b/Dockerfile index 6c2f4e1..53cf30e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ FROM httpd:alpine # Copy in our configuration files. COPY conf/ conf/ -COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh +COPY docker-entrypoint.sh /docker-entrypoint.sh -RUN chmod +x /usr/local/bin/docker-entrypoint.sh; \ +RUN chmod +x /docker-entrypoint.sh; \ set -ex; \ # Create empty default DocumentRoot. mkdir -p "/var/www/html"; \ @@ -52,7 +52,6 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh; \ # Install openssl if we need to generate a self-signed certificate. apk add --no-cache openssl -COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh EXPOSE 80/tcp 443/tcp -ENTRYPOINT [ "/usr/local/bin/docker-entrypoint.sh" ] +ENTRYPOINT [ "/docker-entrypoint.sh" ] CMD [ "httpd-foreground" ]