.jamiematthews
.jamiematthews
RRailway
Created by .jamiematthews on 7/11/2023 in #✋|help
GDAL
I am trying to get GDAL installed so I can use geospatial data in the models. I have tried various different versions of GDAL in requirements, dockerfiles containing gdal and libgdal etc. I can't figure out how to get GDAL installed itself in order to be able to set the library paths in .env. Best I got was the site saying it was deployed with a dockerfile like: FROM python:3.11.1 RUN apt-get update && apt-get install -y \ gdal-bin \ libgdal-dev \ python3-gdal ENV GDAL_LIBRARY_PATH /usr/lib/libgdal.so WORKDIR /app COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt COPY . /app/ EXPOSE 8000 CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] Logs say site is active but accesing the site returns ServerError and application failed to respond.
8 replies
RRailway
Created by .jamiematthews on 7/11/2023 in #✋|help
GDAL
N/A
8 replies