add Workdir
This commit is contained in:
parent
267c443aad
commit
ed57a4a108
@ -1,4 +1,5 @@
|
|||||||
FROM eclipse-temurin:17
|
FROM eclipse-temurin:17
|
||||||
RUN mkdir /opt/app
|
RUN mkdir /opt/app
|
||||||
COPY ./build/libs/sbapp-0.0.1-SNAPSHOT.jar /opt/app
|
WORKDIR /opt/app
|
||||||
CMD ["java", "-jar", "/opt/app/sbapp-0.0.1-SNAPSHOT.jar"]
|
COPY ./build/libs/sbapp-0.0.1-SNAPSHOT.jar ./app.jar
|
||||||
|
CMD ["java", "-jar", "./app.jar"]
|
Loading…
Reference in New Issue
Block a user