-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
29 lines (21 loc) · 841 Bytes
/
Dockerfile.dev
File metadata and controls
29 lines (21 loc) · 841 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
FROM python:3.11-slim-bookworm
WORKDIR /app
EXPOSE 8000
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
# Install GDAL and other geospatial libraries
RUN apt-get update && apt-get install -y binutils build-essential libgdal-dev libproj-dev gdal-bin libsqlite3-mod-spatialite
# Install pip requirements
COPY pyproject.toml .
RUN python -m pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install
# Force no-binary rasterio install via pip
RUN pip uninstall -y rasterio
RUN pip install rasterio --no-binary rasterio --no-cache-dir
RUN pip install jupyter notebook==6.5.6
# Copy project files
COPY . .
CMD ["python", "glam_api/manage.py", "shell_plus", "--notebook"]