Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Commit 9d35c9c

Browse files
authored
Alpine Linux 3.14 (#55)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent fd9644a commit 9d35c9c

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ ARG JLS_VERSION=28662
22
ARG JLS_SHA256=6b3ce4bfc043985276bf6094ca5ed6aef1a1f305f6903725074f36634f3880ba
33

44
FROM crazymax/yasu:latest AS yasu
5-
FROM adoptopenjdk:8-jre-hotspot
5+
FROM alpine:3.14
66

77
ENV JLS_PATH="/opt/jetbrains-license-server" \
88
TZ="UTC" \
99
PUID="1000" \
1010
PGID="1000"
1111

1212
ARG JLS_SHA256
13-
RUN apt-get update \
14-
&& apt-get install -y \
13+
RUN apk add --update --no-cache \
1514
bash \
15+
ca-certificates \
1616
curl \
17+
openjdk8-jre \
18+
openssl \
19+
shadow \
1720
zip \
1821
tzdata \
1922
&& mkdir -p /data "$JLS_PATH" \
@@ -23,11 +26,10 @@ RUN apt-get update \
2326
&& rm -f "/tmp/jls.zip" \
2427
&& chmod a+x "$JLS_PATH/bin/license-server.sh" \
2528
&& ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
26-
&& groupadd -f -g ${PGID} jls \
27-
&& useradd -o -s /bin/bash -d /data -u ${PUID} -g jls -m jls \
29+
&& addgroup -g ${PGID} jls \
30+
&& adduser -u ${PUID} -G jls -h /data -s /bin/bash -D jls \
2831
&& chown -R jls. /data "$JLS_PATH" \
29-
&& apt-get clean \
30-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
32+
&& rm -rf /tmp/* /var/cache/apk/*
3133

3234
COPY --from=yasu / /
3335
COPY entrypoint.sh /entrypoint.sh

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## About
1313

14-
[JetBrains License Server](https://www.jetbrains.com/help/license_server/getting_started.html) Docker image based on AdoptOpenJDK.<br />
14+
[JetBrains License Server](https://www.jetbrains.com/help/license_server/getting_started.html) Docker image based on Alpine Linux.<br />
1515
If you are interested, [check out](https://hub.docker.com/r/crazymax/) my other Docker images!
1616

1717
💡 Want to be notified of new releases? Check out 🔔 [Diun (Docker Image Update Notifier)](https://github.com/crazy-max/diun) project!
@@ -70,6 +70,8 @@ Image: crazymax/jetbrains-license-server:latest
7070
* Manifest List: Yes
7171
* Supported platforms:
7272
- linux/amd64
73+
- linux/arm/v6
74+
- linux/arm/v7
7375
- linux/arm64
7476
- linux/ppc64le
7577
- linux/s390x

docker-bake.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ target "image-all" {
2525
inherits = ["image"]
2626
platforms = [
2727
"linux/amd64",
28+
"linux/arm/v6",
29+
"linux/arm/v7",
2830
"linux/arm64",
2931
"linux/ppc64le",
3032
"linux/s390x"

0 commit comments

Comments
 (0)