Skip to content

Commit 548abb3

Browse files
committed
Added dockerfile
1 parent 77950a7 commit 548abb3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Modbus Simulator Cli - Paulo Balbino - 2024
2+
FROM eclipse-temurin:17 as jre-build
3+
ADD . /work
4+
WORKDIR /work
5+
6+
RUN ./gradlew shadowJar
7+
8+
# Define your base image
9+
FROM eclipse-temurin:17
10+
11+
# Continue with your application deployment
12+
RUN mkdir /opt/app
13+
COPY --from=jre-build work/build/libs/*.jar /opt/app/
14+
CMD ["java", "-jar", "/opt/app/modbus-simulator-cli-1.0-SNAPSHOT-all.jar"]

0 commit comments

Comments
 (0)