2023-12-19 14:47:45 +02:00
|
|
|
FROM hseeberger/scala-sbt:17.0.2_1.6.2_2.13.8 as build
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
|
RUN sbt clean assembly
|
|
|
|
|
|
|
|
|
|
FROM amazoncorretto:17-alpine
|
|
|
|
|
|
2023-12-19 16:06:32 +02:00
|
|
|
COPY --from=build /app/web/dist/ /web/dist/
|
2023-12-19 14:47:45 +02:00
|
|
|
COPY --from=build /app/target/scala-2.13/WeatherTool-assembly-0.1.1-SNAPSHOT.jar /app.jar
|
|
|
|
|
|
|
|
|
|
CMD ["java", "-jar", "/app.jar"]
|