-
Notifications
You must be signed in to change notification settings - Fork 52
/
Dockerfile-jdk
49 lines (39 loc) · 1.41 KB
/
Dockerfile-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
40
41
42
43
44
45
46
47
48
49
FROM eclipse-temurin:17-jdk
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends locales make perl build-essential libz-dev \
unzip \
&& sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen
#Remove the installed version of openssl, and replace it with an up-to-date version
ARG OPENSSL_VERSION="openssl-3.1.4"
RUN apt-get -y remove openssl \
&& cd home \
&& curl -O https://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz \
&& tar -xzvf ${OPENSSL_VERSION}.tar.gz \
&& cd ${OPENSSL_VERSION} \
&& ./config \
&& make install \
&& cd .. \
&& rm -rf ${OPENSSL_VERSION} \
&& rm -f ${OPENSSL_VERSION}.tar.gz
ENV LD_LIBRARY_PATH "/usr/local/lib64"
ARG ARTIFACT
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN curl -SL $ARTIFACT \
| tar -xzC /opt \
&& mv "/opt/Mirth Connect" /opt/connect
RUN useradd -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"]