From 3769328a6d10756934526f5996f658ffa5daaa40 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 8 Feb 2017 10:42:55 +0300 Subject: [PATCH 1/2] docker-entrypoint permissions fix --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 72ee5a1..64c13ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,13 @@ FROM alpine MAINTAINER b4tman ENV SQUID_CONFIG_FILE=/etc/squid/squid.conf -RUN apk add --no-cache squid + +COPY docker-entrypoint.sh / +RUN apk add --no-cache squid \ + chmod 755 /docker-entrypoint.sh +ENTRYPOINT ["/docker-entrypoint.sh"] VOLUME ["/var/cache/squid"] - -COPY docker-entrypoint.sh / -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["squid"] - EXPOSE 3128/tcp + +CMD ["squid"] From c1bdc25e98b737a73c3b41d93d37db89058097f5 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 8 Feb 2017 10:48:45 +0300 Subject: [PATCH 2/2] Dockerfile fix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 64c13ab..05f90af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER b4tman ENV SQUID_CONFIG_FILE=/etc/squid/squid.conf COPY docker-entrypoint.sh / -RUN apk add --no-cache squid \ +RUN apk add --no-cache squid &&\ chmod 755 /docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"]