Optimize layers

This commit is contained in:
CrazyMax 2019-10-10 16:37:50 +02:00
parent a8d867a41f
commit 6359aa45f0
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 20308-RC4 (2019/10/10)
* Optimize layers
## 20308-RC3 (2019/10/10)
* Multi-platform Docker image

View File

@ -24,22 +24,21 @@ RUN apt-get update \
curl \
zip \
tzdata \
&& mkdir -p /data "$JLS_PATH" \
&& curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/jls.zip" \
&& echo "$JLS_SHA256 /tmp/jls.zip" | sha256sum -c - | grep OK \
&& unzip "/tmp/jls.zip" -d "$JLS_PATH" \
&& rm -f "/tmp/jls.zip" \
&& chmod a+x "$JLS_PATH/bin/license-server.sh" \
&& ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
&& groupadd -f -g 1000 jls \
&& useradd -o -s /bin/bash -d /data -u 1000 -g 1000 -m jls \
&& chown -R jls. /data "$JLS_PATH" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY entrypoint.sh /entrypoint.sh
RUN mkdir -p /data "$JLS_PATH" \
&& chmod a+x /entrypoint.sh \
&& groupadd -f -g 1000 jls \
&& useradd -o -s /bin/bash -d /data -u 1000 -g 1000 -m jls \
&& chown -R jls. /data "$JLS_PATH"
RUN chmod a+x /entrypoint.sh
USER jls