Spaces:
Runtime error
Runtime error
Serve docs locally via app.py static mount (Dockerfile)
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -7,6 +7,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 7 |
WORKDIR /app
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# GDAL /vsicurl tuning for cheap COG range reads over HTTPS.
|
| 12 |
ENV GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR \
|
|
@@ -18,4 +21,4 @@ ENV GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR \
|
|
| 18 |
PORT=8000
|
| 19 |
|
| 20 |
EXPOSE 8000
|
| 21 |
-
CMD ["uvicorn", "
|
|
|
|
| 7 |
WORKDIR /app
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
# app.py (static mount) + data/ (STAC catalog + MosaicJSON, served same-origin)
|
| 11 |
+
COPY app.py .
|
| 12 |
+
COPY data ./data
|
| 13 |
|
| 14 |
# GDAL /vsicurl tuning for cheap COG range reads over HTTPS.
|
| 15 |
ENV GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR \
|
|
|
|
| 21 |
PORT=8000
|
| 22 |
|
| 23 |
EXPOSE 8000
|
| 24 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|