-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Dockerfile for azul/zulu-openjdk-alpine base image
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM azul/zulu-openjdk-alpine:11 | ||
|
||
RUN apk update && apk upgrade && apk --no-cache add bash postgresql-client mysql-client wget | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN wget -qO- 'https://s3.amazonaws.com/downloads.mirthcorp.com/connect/3.8.0.b2464/mirthconnect-3.8.0.b2464-unix.tar.gz' \ | ||
| tar -xzC /opt \ | ||
&& mv "/opt/Mirth Connect" /opt/connect | ||
|
||
RUN adduser -D -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 cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.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"] |