Fix copying json files from root dir on building docker image

This commit is contained in:
Mikołaj Pich 2023-09-19 21:39:27 +02:00
parent 052c96be25
commit c73d809487

View file

@ -6,7 +6,7 @@ RUN gradle buildFatJar --no-daemon
FROM openjdk:11 FROM openjdk:11
EXPOSE 3002 EXPOSE 3002
RUN mkdir /app RUN mkdir /app
COPY --from=build /home/gradle/src/.env /home/gradle/src/build/libs/*.jar /app/ COPY --from=build /home/gradle/src/.env /home/gradle/src/*.json /home/gradle/src/build/libs/*.jar /app/
ENV PORT=3002 ENV PORT=3002
ENTRYPOINT ["java","-jar","/app/schools-all.jar"] ENTRYPOINT ["java","-jar","/app/schools-all.jar"]