Skip to content

Commit aeabc34

Browse files
committed
separate dockerfiles
1 parent 31dcae9 commit aeabc34

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ WORKDIR /app
1212

1313
COPY . /app
1414

15+
RUN pip install --no-cache-dir -e ./stac_fastapi/core
1516
RUN pip install --no-cache-dir ./stac_fastapi/elasticsearch[server]
1617

1718
EXPOSE 8080

Dockerfile.deploy.os

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM python:3.10-slim
2+
3+
RUN apt-get update && \
4+
apt-get -y upgrade && \
5+
apt-get -y install gcc && \
6+
apt-get clean && \
7+
rm -rf /var/lib/apt/lists/*
8+
9+
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
10+
11+
WORKDIR /app
12+
13+
COPY . /app
14+
15+
RUN pip install --no-cache-dir -e ./stac_fastapi/core
16+
RUN pip install --no-cache-dir ./stac_fastapi/elasticsearch[server]
17+
18+
EXPOSE 8080
19+
20+
CMD ["uvicorn", "stac_fastapi.opensearch.app:app", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)