mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
fix: make Docker container UID/GID configurable
Add UID and GID build arguments to Dockerfiles to allow matching the container user to the host user. This fixes file permission issues when mounting host directories as volumes. Default remains 1001 for backward compatibility. To match host user: UID=$(id -u) GID=$(id -g) docker-compose build Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,11 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
args:
|
||||
# Match container user to host user for mounted volume permissions
|
||||
# Override with: UID=$(id -u) GID=$(id -g) docker-compose build
|
||||
UID: ${UID:-1001}
|
||||
GID: ${GID:-1001}
|
||||
container_name: automaker-dev-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -94,6 +99,9 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
args:
|
||||
UID: ${UID:-1001}
|
||||
GID: ${GID:-1001}
|
||||
container_name: automaker-dev-ui
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user