dz1-spatial-query/stac-fastapi-pgstac/Dockerfile
weixin_46229132 5bc6302955 first commit
2025-07-03 20:29:02 +08:00

24 lines
584 B
Docker

ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}-slim AS base
# Any python libraries that require system libraries to be installed will likely
# need the following packages in order to build
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
FROM base AS builder
WORKDIR /app
COPY . /app
RUN python -m pip install -e .[server]
CMD ["uvicorn", "stac_fastapi.pgstac.app:app", "--host", "0.0.0.0", "--port", "8080"]