-
Notifications
You must be signed in to change notification settings - Fork 52
/
Dockerfile-zulu-alpine-jdk
39 lines (29 loc) · 1.25 KB
/
Dockerfile-zulu-alpine-jdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM alpine:3
RUN apk update && apk upgrade && apk --no-cache add bash curl
ARG ARTIFACT
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ARG ZULU_KEY_SHA256=6c6393d4755818a15cf055a5216cffa599f038cd508433faed2226925956509a
RUN wget --quiet https://cdn.azul.com/public_keys/alpine-signing@azul.com-5d5dc44c.rsa.pub -P /etc/apk/keys/ && \
echo "${ZULU_KEY_SHA256} /etc/apk/keys/alpine-signing@azul.com-5d5dc44c.rsa.pub" | sha256sum -c - && \
apk --repository https://repos.azul.com/zulu/alpine --no-cache add zulu17-jdk~=17.0.7 tzdata
ENV JAVA_HOME=/usr/lib/jvm/zulu17
RUN curl -SL $ARTIFACT \
| tar -xzC /opt \
&& mv "/opt/Mirth Connect" /opt/connect
RUN adduser -D -H -u 1000 mirth
RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata
VOLUME /opt/connect/appdata
VOLUME /opt/connect/custom-extensions
WORKDIR /opt/connect
RUN rm -rf cli-lib manager-lib \
&& rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager
RUN (cat mcserver.vmoptions /opt/connect/docs/mcservice-java9+.vmoptions ; echo "") > mcserver_base.vmoptions
EXPOSE 8443
COPY entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
RUN chown -R mirth:mirth /opt/connect
USER mirth
CMD ["./mcserver"]