Permission on entrypoint

This commit is contained in:
CrazyMax 2018-02-01 20:43:54 +01:00
parent 4029c9a845
commit af94b01c28

View File

@ -23,6 +23,9 @@ ENV JLS_PATH="/opt/jetbrains-license-server" \
JLS_VERSION="15802" \ JLS_VERSION="15802" \
JLS_SHA256="e0030be1fd06e2db19576363a388d8b84e7b33c9d48c54f0cfcdc032ddd96181" JLS_SHA256="e0030be1fd06e2db19576363a388d8b84e7b33c9d48c54f0cfcdc032ddd96181"
ADD entrypoint.sh /entrypoint.sh
ADD assets /
RUN mkdir -p "$JLS_PATH" "/data/registration" "/run/nginx" \ RUN mkdir -p "$JLS_PATH" "/data/registration" "/run/nginx" \
&& curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/lsi.zip" \ && curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/lsi.zip" \
&& echo "$JLS_SHA256 /tmp/lsi.zip" | sha256sum -c - | grep OK \ && echo "$JLS_SHA256 /tmp/lsi.zip" | sha256sum -c - | grep OK \
@ -32,10 +35,8 @@ RUN mkdir -p "$JLS_PATH" "/data/registration" "/run/nginx" \
&& chmod a+x "$JLS_PATH/bin/license-server.sh" \ && chmod a+x "$JLS_PATH/bin/license-server.sh" \
&& ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \ && ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
&& ln -sf "/data/registration" "/root/.jb-license-server" \ && ln -sf "/data/registration" "/root/.jb-license-server" \
&& touch "/data/access-config.json" && touch "/data/access-config.json" \
&& chmod a+x /entrypoint.sh
ADD entrypoint.sh /entrypoint.sh
ADD assets /
EXPOSE 80 EXPOSE 80
VOLUME [ "/data" ] VOLUME [ "/data" ]