feat: switch to Dockerfile build to bake config into image
This commit is contained in:
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM ghcr.io/gethomepage/homepage:latest
|
||||
|
||||
# Copy configuration files from the repository into the container
|
||||
COPY ./config /app/config
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user