Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BLUE := \033[1;34m
DOCKER_UID = $(shell id -u)
DOCKER_GID = $(shell id -g)
DOCKER_USER = $(DOCKER_UID):$(DOCKER_GID)
COMPOSE = DOCKER_USER=$(DOCKER_USER) docker compose
COMPOSE = DOCKER_USER=$(DOCKER_USER) DOCKER_UID=$(DOCKER_UID) docker compose
COMPOSE_EXEC = $(COMPOSE) exec
COMPOSE_EXEC_APP = $(COMPOSE_EXEC) backend-dev
COMPOSE_RUN = $(COMPOSE) run --rm
Expand Down
6 changes: 5 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ services:
- /app/.venv

frontend-dev:
user: "${DOCKER_USER:-1000}"
# Keep the host UID (file ownership on the bind-mounted sources) but force
# the GID to 1000, the `node` group that owns the image's group-writable
# node_modules. On macOS the host GID is 20 (staff), not 1000, so the
# default ${DOCKER_USER} would leave Vite unable to write node_modules/.vite
user: "${DOCKER_UID:-1000}:1000"
build:
context: src/frontend
target: calendars-dev
Expand Down
Loading