Skip to content

Commit ea847dd

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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} \

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
context: .
77
dockerfile: Dockerfile
88
target: development
9+
args:
10+
UID: ${UID:-1000}
911
command: python manage.py runserver 0.0.0.0:8000
1012
ports:
1113
- "8000:8000"
@@ -16,8 +18,6 @@ services:
1618
- asset_builder
1719
volumes:
1820
- ./:/app
19-
- venv:/app/.venv
20-
- playwright_browsers:/app/browsers
2121
restart: unless-stopped
2222

2323
asset_builder:
@@ -48,6 +48,4 @@ services:
4848
volumes:
4949
postgres_data:
5050
redis_data:
51-
venv:
52-
playwright_browsers:
5351
node_modules:

0 commit comments

Comments
 (0)