Skip to content

Commit 2e98984

Browse files
committed
Configure reload for stac-fastapi
1 parent a59af79 commit 2e98984

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ services:
4646
- DB_MAX_CONN_SIZE=10
4747
depends_on:
4848
- database
49-
command: bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh"
49+
command: bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start-reload.sh"
5050
volumes:
5151
- ./dockerfiles/scripts:/tmp/scripts
52+
- ./runtime/eoapi/stac:/app/stac
5253

5354
titiler-pgstac:
5455
# At the time of writing, rasterio and psycopg wheels are not available for arm64 arch

dockerfiles/Dockerfile.stac

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ FROM ghcr.io/vincentsarago/uvicorn-gunicorn:${PYTHON_VERSION}
44

55
ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt
66

7-
COPY runtime/eoapi/stac /tmp/stac
8-
RUN pip install /tmp/stac
9-
RUN rm -rf /tmp/stac
7+
COPY runtime/eoapi/stac /app/stac
8+
RUN pip install -e /app/stac
109

1110
ENV MODULE_NAME eoapi.stac.app
1211
ENV VARIABLE_NAME app

0 commit comments

Comments
 (0)