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
@@ -7,9 +7,11 @@ RUN sbt clean assembly
FROM amazoncorretto:17-alpine
COPY --from=build /app/web/dist/ /web/dist/
COPY --from=build /app/target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar /app.jar
WORKDIR /app
COPY --from=build /app/web/dist/ web/dist/
COPY --from=build /app/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"]