Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ecostanzi committed May 22, 2024
1 parent 3218513 commit ccd139e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use a base image with Java 17 installed
FROM eclipse-temurin:17

# Set the working directory inside the container
WORKDIR /app

# Copy the JAR file into the container
COPY target/twelve-factor-demo.jar my-app.jar

# Expose the port your application listens on (if applicable)
EXPOSE 8080

# Set the command to run your application when the container starts
CMD ["java", "-jar", "my-app.jar"]

0 comments on commit ccd139e

Please sign in to comment.