Optimize layers
This commit is contained in:
parent
a8d867a41f
commit
6359aa45f0
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 20308-RC4 (2019/10/10)
|
||||
|
||||
* Optimize layers
|
||||
|
||||
## 20308-RC3 (2019/10/10)
|
||||
|
||||
* Multi-platform Docker image
|
||||
|
11
Dockerfile
11
Dockerfile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user