feat: switch to Dockerfile build to bake config into image

This commit is contained in:
2026-02-16 22:04:24 -03:00
parent 50b79dd3fa
commit d27fcff3ae
2 changed files with 11 additions and 3 deletions

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM ghcr.io/gethomepage/homepage:latest
# Copy configuration files from the repository into the container
COPY ./config /app/config

View File

@@ -1,13 +1,17 @@
services: services:
homepage: homepage:
image: ghcr.io/gethomepage/homepage:latest # image: ghcr.io/gethomepage/homepage:latest
build:
context: .
dockerfile: Dockerfile
container_name: homepage container_name: homepage
restart: unless-stopped restart: unless-stopped
networks: networks:
- proxy - proxy
- socket_proxy - socket_proxy
volumes: # Volumes are commented out to use the baked-in config from Git
- ${CONFIG_PATH:-./config}:/app/config # volumes:
# - ./config:/app/config
environment: environment:
- PUID=${PUID} - PUID=${PUID}
- PGID=${PGID} - PGID=${PGID}