WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Use an official OpenJDK runtime as the base image
FROM openjdk:11-jre-slim

# Set the working directory within the container
WORKDIR /app

# Copy the JAR file from your local build directory to the container
COPY target/spring-petclinic-3.1.0-SNAPSHOT.jar app.jar

# Specify the command to run the application when the container starts
ENTRYPOINT ["java", "-jar", "app.jar"]