diff --git a/.gitignore b/.gitignore index 7e048bb6..f15ccaa9 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,17 @@ application-oauth2.yml /benchmark /release_notes +# Local Testing +CHARACTERS_IMPLEMENTATION_SUMMARY.md +docker-compose.test.yml +start-test.ps1 +stop-test.ps1 +test-api.ps1 + +# Local configs +test-config/ +test-data/ + ### Conveyor output/ secret/ diff --git a/komga/Dockerfile.local b/komga/Dockerfile.local new file mode 100644 index 00000000..8f0d2bda --- /dev/null +++ b/komga/Dockerfile.local @@ -0,0 +1,24 @@ +FROM eclipse-temurin:17-jre + +# Install dependencies +RUN apt-get update && \ + apt-get install -y wget && \ + wget "https://github.com/pgaskin/kepubify/releases/latest/download/kepubify-linux-64bit" -O /usr/bin/kepubify && \ + chmod +x /usr/bin/kepubify && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +VOLUME /tmp +VOLUME /config +VOLUME /data +WORKDIR /app + +# Copy the JAR file +COPY build/libs/*.jar app.jar + +ENV KOMGA_CONFIGDIR="/config" +ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' + +EXPOSE 25600 + +ENTRYPOINT ["java", "-Dspring.profiles.include=docker", "-jar", "app.jar", "--spring.config.additional-location=file:/config/"]