From 3769328a6d10756934526f5996f658ffa5daaa40 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 8 Feb 2017 10:42:55 +0300 Subject: [PATCH] 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"]