blob: b0a2f867a43d10a4532b383a2a137ac17d54e8f3 [file] [log] [blame]
# Add java runtime environment for execution
FROM java:8-jdk-alpine
# Copy built jar to image using the jar name specified in the pom.xml (JAR_FILE)
ARG JAR_FILE
COPY target/${JAR_FILE} /usr/share/basyxExecutable.jar
COPY target/lib /usr/share/lib
# Expose the appropriate port. In case of Tomcat, this is 8080.
ARG PORT
EXPOSE ${PORT}
# Start the jar
CMD java -jar "/usr/share/basyxExecutable.jar"