Fix paths in docker images

This commit is contained in:
Guntis Smaukstelis
2025-02-13 23:21:19 +02:00
parent 37ac7eb0e3
commit dc82b95a8a
5 changed files with 17 additions and 8 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
FROM amazoncorretto:17-alpine
COPY ./web/dist/ /web/dist/
COPY ./target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar /app.jar
WORKDIR /app
COPY ./web/dist/ web/dist/
COPY ./target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar app.jar
VOLUME /app/data
CMD ["java", "-jar", "/app.jar"]
CMD ["java", "-jar", "app.jar"]