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:
|
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}
|
||||||
|
|||||||
Reference in New Issue
Block a user