xasaqqq commited on
Commit
33a331d
1 Parent(s): 1cd9afc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +45 -0
Dockerfile ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # syntax=docker/dockerfile:1
2
+
3
+ ARG JLS_VERSION=39687
4
+ ARG JLS_SHA256=bcb5fa802993894c61bc4da96ffd823cbb90a3151ab4da57ae7cc8c4301d3eab
5
+ ARG ALPINE_VERSION=3.19
6
+
7
+ FROM alpine:${ALPINE_VERSION}
8
+ ENV JLS_PATH="/opt/jetbrains-license-server" \
9
+ TZ="UTC" \
10
+ PUID="1000" \
11
+ PGID="1000"
12
+ ARG JLS_SHA256
13
+ RUN apk add --update --no-cache \
14
+ bash \
15
+ ca-certificates \
16
+ curl \
17
+ openjdk11-jre \
18
+ openssl \
19
+ shadow \
20
+ zip \
21
+ tzdata \
22
+ && mkdir -p /data "$JLS_PATH" \
23
+ && curl -L "https://download.jetbrains.com/lcsrv/license-server-installer.zip" -o "/tmp/jls.zip" \
24
+ && echo "$JLS_SHA256 /tmp/jls.zip" | sha256sum -c - | grep OK \
25
+ && unzip "/tmp/jls.zip" -d "$JLS_PATH" \
26
+ && rm -f "/tmp/jls.zip" \
27
+ && chmod a+x "$JLS_PATH/bin/license-server.sh" \
28
+ && ln -sf "$JLS_PATH/bin/license-server.sh" "/usr/local/bin/license-server" \
29
+ && addgroup -g ${PGID} jls \
30
+ && adduser -u ${PUID} -G jls -h /data -s /bin/bash -D jls \
31
+ && chown -R jls. /data "$JLS_PATH" \
32
+ && rm -rf /tmp/*
33
+
34
+ COPY --from=crazymax/yasu:latest / /
35
+ COPY entrypoint.sh /entrypoint.sh
36
+
37
+ EXPOSE 7860
38
+ WORKDIR /data
39
+ VOLUME [ "/data" ]
40
+
41
+ ENTRYPOINT [ "/entrypoint.sh" ]
42
+ CMD [ "/usr/local/bin/license-server", "run" ]
43
+
44
+ HEALTHCHECK --interval=10s --timeout=5s \
45
+ CMD license-server status || exit 1