Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rlawhddbs authored Aug 26, 2024
1 parent d6d93bb commit 76f0cb1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions canbus-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM amazoncorretto:17-alpine

WORKDIR /app

COPY . .

RUN chmod +x ./gradlew
RUN ./gradlew clean build

ENV JAR_PATH=/app/build/libs
RUN mv ${JAR_PATH}/canbus-server-0.0.1-SNAPSHOT.jar /app/app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit 76f0cb1

Please sign in to comment.