From d27fcff3aec602025faa29bb715de049de98cb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Loureiro?= Date: Mon, 16 Feb 2026 22:04:24 -0300 Subject: [PATCH] feat: switch to Dockerfile build to bake config into image --- Dockerfile | 4 ++++ docker-compose.yaml | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a163bfb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ghcr.io/gethomepage/homepage:latest + +# Copy configuration files from the repository into the container +COPY ./config /app/config diff --git a/docker-compose.yaml b/docker-compose.yaml index cbf30c4..ef25f6f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,13 +1,17 @@ services: homepage: - image: ghcr.io/gethomepage/homepage:latest + # image: ghcr.io/gethomepage/homepage:latest + build: + context: . + dockerfile: Dockerfile container_name: homepage restart: unless-stopped networks: - proxy - socket_proxy - volumes: - - ${CONFIG_PATH:-./config}:/app/config + # Volumes are commented out to use the baked-in config from Git + # volumes: + # - ./config:/app/config environment: - PUID=${PUID} - PGID=${PGID}