-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.backend
More file actions
35 lines (28 loc) · 927 Bytes
/
Dockerfile.backend
File metadata and controls
35 lines (28 loc) · 927 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.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# System deps for scientific stack (scanpy/squidpy/geopandas, etc.)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
liblapack-dev \
libopenblas-dev \
libpq-dev \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
libjpeg-dev && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r /app/requirements.txt
# Copy backend code and datasets
COPY backend /app/backend
COPY datasets /app/datasets
WORKDIR /app
ENV DJANGO_SETTINGS_MODULE=spatial_explorer.settings
EXPOSE 8000
CMD ["python", "backend/manage.py", "runserver", "0.0.0.0:8000"]