mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Added Dockerfile
Added docker-compose.example.yml Implemented JAR signing with Gradle
This commit is contained in:
+14
-9
@@ -1,21 +1,26 @@
|
||||
# syntax=docker/dockerfile:1.4
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
|
||||
ENV GAMEYFIN_SOURCES=/opt/gameyfin-library
|
||||
ENV USER=gameyfin
|
||||
|
||||
|
||||
RUN addgroup gameyfin && \
|
||||
adduser --disabled-password --gecos "" --ingroup "$USER" --no-create-home "$USER" && \
|
||||
mkdir -p /opt/gameyfin ${GAMEYFIN_SOURCES} && \
|
||||
chown -R gameyfin:gameyfin /opt/gameyfin ${GAMEYFIN_SOURCES}
|
||||
adduser --disabled-password --gecos "" --ingroup "$USER" --no-create-home "$USER"
|
||||
|
||||
USER gameyfin:gameyfin
|
||||
|
||||
ARG JAR_FILE=./backend/target/*.jar
|
||||
COPY ${JAR_FILE} /opt/gameyfin/gameyfin.jar
|
||||
|
||||
WORKDIR /opt/gameyfin
|
||||
|
||||
# Copy application jar (not ending with -plain.jar)
|
||||
COPY --chown=gameyfin:gameyfin ./app/build/libs/ /tmp/app-libs/
|
||||
RUN find /tmp/app-libs -type f -name "*.jar" ! -name "*-plain.jar" -exec cp {} /opt/gameyfin/gameyfin.jar \; && \
|
||||
rm -rf /tmp/app-libs
|
||||
|
||||
# Copy all plugin jars
|
||||
COPY --chown=gameyfin:gameyfin ./plugins/ /tmp/plugins/
|
||||
RUN mkdir -p /opt/gameyfin/plugins && \
|
||||
find /tmp/plugins -type f -path "*/build/libs/*.jar" -exec cp {} /opt/gameyfin/plugins/ \; && \
|
||||
rm -rf /tmp/plugins
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "gameyfin.jar"]
|
||||
ENTRYPOINT ["java", "-jar", "gameyfin.jar"]
|
||||
@@ -1,11 +1,18 @@
|
||||
version: "3"
|
||||
services:
|
||||
gameyfin:
|
||||
image: grimsi/gameyfin:v2
|
||||
image: gameyfin/app:2.0.0.beta2
|
||||
container_name: gameyfin
|
||||
environment:
|
||||
PLACEHOLDER: ""
|
||||
# Generate a new APP_KEY using the command `openssl rand -base64 32` or similar.
|
||||
APP_KEY: <you app key here>
|
||||
volumes:
|
||||
- <path to your game library>:/opt/gameyfin-library
|
||||
- "./db:/opt/gameyfin/db"
|
||||
- "./data:/opt/gameyfin/data"
|
||||
- "./logs:/opt/gameyfin/logs"
|
||||
- <mount your library folder(s) here>
|
||||
ports:
|
||||
- "8080:8080"
|
||||
# If you plan to use the included torrent plugin, uncomment the following lines:
|
||||
# - "6969:6969"
|
||||
# - "6881:6881"
|
||||
|
||||
Reference in New Issue
Block a user