Skip to content

Commit

Permalink
chore: Update Dockerfile to use relative path for jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony0380 committed Jun 9, 2024
1 parent 0167de0 commit 78f27a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Usa l'immagine di base di OpenJDK 19 JDK slim
FROM openjdk:19-jdk-slim

# Crea una directory /app all'interno del container
RUN mkdir /app

# Copia il file JAR nella directory /app del container
COPY ./build/libs/computability-all.jar /app

# Imposta la directory di lavoro all'interno del container
WORKDIR /app

# Definisce il comando di avvio dell'applicazione
ENTRYPOINT ["java", "-jar", "computability-all.jar"]

0 comments on commit 78f27a2

Please sign in to comment.