Skip to content

Commit

Permalink
Adding Dockerfile for azul/zulu-openjdk-alpine base image
Browse files Browse the repository at this point in the history
  • Loading branch information
narupley committed Aug 27, 2019
1 parent ab46cd0 commit 4cd6deb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile-zulu-alpine
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"]

0 comments on commit 4cd6deb

Please sign in to comment.