Skip to content

Commit ca9155c

Browse files
committed
Pass host UID to docker compose via args
1 parent 6ca1ce9 commit ca9155c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR
3535
# Alpine doesn't support playwright
3636
FROM python:3.13.7-slim AS development
3737

38-
ENV UID=1000
38+
ARG UID=1000
3939
ENV USER=app
4040
ENV APP_DIR=/app
4141
RUN addgroup --gid $UID --system ${USER} \

makefiles/dev.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dev-logs:
1919
$(DOCKER_COMPOSE_CMD) logs -f
2020

2121
dev-shell:
22-
$(DOCKER_COMPOSE_CMD) run web bash
22+
$(DOCKER_COMPOSE_CMD) run --rm web bash
2323

2424
dev-migrate:
2525
$(DOCKER_COMPOSE_CMD) run --rm web python manage.py migrate

0 commit comments

Comments
 (0)