updating the Dockerfile and the Jenkinsfile so the db, logs and files stay outside the docker container

This commit is contained in:
Rostislav Raykov
2024-10-08 23:57:24 +03:00
parent 65cf05b261
commit 19059e02b5
2 changed files with 15 additions and 7 deletions

View File

@@ -4,6 +4,8 @@ WORKDIR /app
COPY ${WORKSPACE}/target/quickdrop-0.0.1-SNAPSHOT.jar /app/quickdrop.jar
VOLUME ["/app/db", "/app/log", "/files"]
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app/quickdrop.jar"]