refactor: remove docker profile

move configuration directly to Dockerfile
This commit is contained in:
Gauthier Roebroeck 2020-03-05 20:47:16 +08:00
parent a88f577b53
commit 1ba9d2ee73
2 changed files with 3 additions and 5 deletions

View file

@ -4,5 +4,7 @@ ARG DEPENDENCY=target/dependency
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY ${DEPENDENCY}/META-INF /app/META-INF
COPY ${DEPENDENCY}/BOOT-INF/classes /app
ENV SPRING_PROFILES_ACTIVE=docker
ENV SPRING_DATASOURCE_URL="jdbc:h2:/config/database.h2"
ENV LOGGING_FILE_NAME="/config/logs/komga.log"
ENTRYPOINT ["java","-cp","app:app/lib/*","org.gotson.komga.ApplicationKt"]
EXPOSE 8080

View file

@ -1,4 +0,0 @@
spring:
datasource:
url: jdbc:h2:/config/database.h2
logging.file.name: /config/logs/komga.log