Created
May 19, 2017 03:37
-
-
Save goindwalia/1cf6b90001928a433be370955eb71492 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM maven:3-alpine | |
MAINTAINER XenonStack | |
# Creating Application Source Code Directory | |
RUN mkdir -p /usr/src/app | |
# Setting Home Directory for containers | |
WORKDIR /usr/src/app | |
# Copying src code to Container | |
COPY . /usr/src/app | |
# Building From Source Code | |
RUN mvn clean package | |
# Setting Persistent drive | |
VOLUME ["/kotlin-data"] | |
# Exposing Port | |
EXPOSE 8082 | |
# Running Kotlin Application | |
CMD ["java", "-jar", "target/<name of your kotlin jar>.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment