Skip to content

Commit 70e8e87

Browse files
committed
Match release dockerfile patterns in dev dockerfile
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent 6b7246f commit 70e8e87

1 file changed

Lines changed: 38 additions & 25 deletions

File tree

Dockerfile

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,23 @@ WORKDIR /app/server
2828
RUN source "$HOME/.sdkman/bin/sdkman-init.sh" \
2929
&& ANT_OPTS="-Dfile.encoding=UTF8" ant -f mirth-build.xml -DdisableSigning=true
3030

31-
# Stage 2b: JDK runtime container
31+
##########################################
32+
#
33+
# Ubuntu JDK Image
34+
#
35+
##########################################
36+
3237
FROM eclipse-temurin:21.0.7_6-jdk-noble as jdk-run
3338

34-
RUN groupadd mirth \
35-
&& usermod -l mirth ubuntu \
36-
&& adduser mirth mirth \
37-
&& mkdir -p /opt/connect/appdata \
38-
&& chown -R mirth:mirth /opt/connect
39+
RUN groupadd engine \
40+
&& usermod -l engine ubuntu \
41+
&& adduser engine engine \
42+
&& mkdir -p /opt/engine/appdata \
43+
&& chown -R engine:engine /opt/engine
3944

40-
WORKDIR /opt/connect
41-
COPY --chown=mirth:mirth --from=builder \
45+
WORKDIR /opt/engine
46+
COPY --chmod=0755 docker/entrypoint.sh ./
47+
COPY --chown=engine:engine --from=builder \
4248
--exclude=cli-lib \
4349
--exclude=mirth-cli-launcher.jar \
4450
--exclude=mccommand \
@@ -47,27 +53,33 @@ COPY --chown=mirth:mirth --from=builder \
4753
--exclude=mcmanager \
4854
/app/server/setup ./
4955

50-
VOLUME /opt/connect/appdata
51-
VOLUME /opt/connect/custom-extensions
56+
VOLUME /opt/engine/appdata
57+
VOLUME /opt/engine/custom-extensions
5258
EXPOSE 8443
5359

54-
USER mirth
55-
ENTRYPOINT [ "/opt/connect/entrypoint.sh" ]
56-
CMD ["/opt/connect/mirth-connect.sh"]
60+
USER engine
61+
ENTRYPOINT ["./entrypoint.sh"]
62+
CMD ["./oieserver"]
63+
64+
##########################################
65+
#
66+
# Alpine JRE Image
67+
#
68+
##########################################
5769

58-
# Stage 2b: JRE runtime container
5970
FROM eclipse-temurin:21.0.7_6-jre-alpine as jre-run
6071

6172
# Alpine does not include bash by default, so we install it
6273
RUN apk add --no-cache bash
6374
# useradd and groupadd are not available in Alpine
64-
RUN addgroup -S mirth \
65-
&& adduser -S -g mirth mirth \
66-
&& mkdir -p /opt/connect/appdata \
67-
&& chown -R mirth:mirth /opt/connect
75+
RUN addgroup -S engine \
76+
&& adduser -S -g engine engine \
77+
&& mkdir -p /opt/engine/appdata \
78+
&& chown -R engine:engine /opt/engine
6879

69-
WORKDIR /opt/connect
70-
COPY --chown=mirth:mirth --from=builder \
80+
WORKDIR /opt/engine
81+
COPY --chmod=0755 docker/entrypoint.sh ./
82+
COPY --chown=engine:engine --from=builder \
7183
--exclude=cli-lib \
7284
--exclude=mirth-cli-launcher.jar \
7385
--exclude=mccommand \
@@ -76,10 +88,11 @@ COPY --chown=mirth:mirth --from=builder \
7688
--exclude=mcmanager \
7789
/app/server/setup ./
7890

79-
VOLUME /opt/connect/appdata
80-
VOLUME /opt/connect/custom-extensions
91+
VOLUME /opt/engine/appdata
92+
VOLUME /opt/engine/custom-extensions
93+
8194
EXPOSE 8443
8295

83-
USER mirth
84-
ENTRYPOINT [ "/opt/connect/entrypoint.sh" ]
85-
CMD ["/opt/connect/mirth-connect.sh"]
96+
USER engine
97+
ENTRYPOINT ["./entrypoint.sh"]
98+
CMD ["./oieserver"]

0 commit comments

Comments
 (0)