TerrainExplorer / Dockerfile
gauthamnairy's picture
Update Dockerfile
6d286b5 verified
raw
history blame contribute delete
431 Bytes
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code
RUN apt-get update && apt-get install -y \
build-essential \
gdal-bin \
libgdal-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /code/
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY . /code/
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]