forked from stac-utils/stac-fastapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 712 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.8-slim as base
FROM base as builder
# 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 install -y build-essential git
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
ARG install_dev_dependencies=true
WORKDIR /app
# Install stac_fastapi.types
COPY . /app
ENV PATH=$PATH:/install/bin
RUN mkdir -p /install && \
pip install -e ./stac_fastapi/types[dev] && \
pip install -e ./stac_fastapi/api[dev] && \
pip install -e ./stac_fastapi/extensions[dev] && \
pip install -e ./stac_fastapi/sqlalchemy[dev,server] && \
pip install -e ./stac_fastapi/pgstac[dev,server]