Skip to content

Commit c16490d

Browse files
committed
Fixing bug in Dockerfile
1 parent b823a7c commit c16490d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ ENV RUN_FROM_JAR=true
1313

1414
COPY --from=fetch /target/application.jar /work/application.jar
1515

16-
RUN java -jar /work/application.jar
16+
CMD ["java", "-jar", "/work/application.jar"]

docker-compose.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ services:
99
- .postgres_data:/var/lib/postgresql/data
1010

1111
service:
12-
image: amazoncorretto:21-al2023-headless
13-
command: java -jar /src/target/moresleep-0.0.1-jar-with-dependencies.jar
12+
build: .
1413
ports:
1514
- "8082:8082"
1615
volumes:
1716
- ./:/src
1817
environment:
1918
- DBHOST=db
20-
- RUN_FROM_JAR=true
2119
env_file:
2220
- path: ./.env
2321
required: false

0 commit comments

Comments
 (0)