-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.14-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdal-bin \
libgdal-dev \
build-essential \
python3-gdal \
libspatialindex-dev \
gettext \
libpango-1.0-0 libpangoft2-1.0-0 libgobject-2.0-0 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash acceslibre
USER acceslibre
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DJANGO_SETTINGS_MODULE=core.settings_dev
ENV VIRTUAL_ENV=/app/.venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY pyproject.toml uv.lock ./
RUN uv venv && \
uv sync --dev
COPY . .
EXPOSE 8000
CMD ["uv", "run", "manage.py", "runserver", "0.0.0.0:8000"]