diff --git a/Dockerfile b/Dockerfile index 2e99933..9c2de4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,13 @@ RUN \ rm -rf /var/lib/apt/lists/* && \ rm /tmp/install-iconik.sh -# Allows any user to write files like log files. -# Data permissions will be different for data directory, +# Allows any user to write files like log files, pid files, etc. +# Permissions will be different for data directory, # as it will be a bind mount. -RUN chmod 777 -R /var/iconik/iconik_storage_gateway +RUN \ + chmod 777 -R /var/iconik/iconik_storage_gateway && \ + chmod 777 -R /var/log/iconik/iconik_storage_gateway + VOLUME /var/iconik/iconik_storage_gateway/data ENTRYPOINT /opt/iconik/iconik_storage_gateway/iconik_storage_gateway \