-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable a docker plugin for build time image creation (#27)
- Loading branch information
John D. Ament
committed
Jan 16, 2018
1 parent
72e5306
commit 779fbd1
Showing
3 changed files
with
42 additions
and
4 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,29 @@ | ||
FROM openjdk:8u92-alpine | ||
|
||
ARG JAR_FILE | ||
ARG CONF_FILE | ||
ARG PROP_FILE | ||
ARG MYSQL_CONNECTOR_VERSION=5.0.8 | ||
|
||
RUN apk add --update bash curl unzip && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Install MySQL Connector | ||
WORKDIR /opt/holdmail/lib | ||
RUN curl -sLO https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${MYSQL_CONNECTOR_VERSION}.zip && \ | ||
unzip mysql-connector-java-${MYSQL_CONNECTOR_VERSION}.zip | ||
|
||
# Install Holdmail | ||
|
||
RUN mkdir -p /var/log/holdmail | ||
|
||
WORKDIR /etc | ||
ADD ${PROP_FILE} holdmail.properties | ||
|
||
WORKDIR /opt/holdmail/bin/ | ||
ADD ${JAR_FILE} holdmail.jar | ||
ADD ${CONF_FILE} holdmail.conf | ||
|
||
EXPOSE 8080 25000 | ||
|
||
ENTRYPOINT ["./holdmail.jar"] |
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
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