Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save goindwalia/1cf6b90001928a433be370955eb71492 to your computer and use it in GitHub Desktop.
Save goindwalia/1cf6b90001928a433be370955eb71492 to your computer and use it in GitHub Desktop.
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