Skip to content

Commit ab70781

Browse files
committed
add dockerfile
1 parent 61c2c21 commit ab70781

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile.mongo

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.8-slim as base
2+
3+
FROM base as builder
4+
# Any python libraries that require system libraries to be installed will likely
5+
# need the following packages in order to build
6+
RUN apt-get update && apt-get install -y build-essential git
7+
8+
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
9+
10+
ARG install_dev_dependencies=true
11+
12+
WORKDIR /app
13+
14+
# Install stac_fastapi.types
15+
COPY . /app
16+
17+
ENV PATH=$PATH:/install/bin
18+
19+
RUN mkdir -p /install && \
20+
pip install -e ./stac_fastapi/types[dev] && \
21+
pip install -e ./stac_fastapi/api[dev] && \
22+
pip install -e ./stac_fastapi/extensions[dev] && \
23+
pip install -e ./stac_fastapi/mongo[dev,server]

0 commit comments

Comments
 (0)