Skip to content

Commit 1a71e98

Browse files
committed
Merge branch 'main' of https://github.com/developmentseed/eoapi-devseed into feature/add-auth
2 parents b784e1c + d90d723 commit 1a71e98

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

dockerfiles/Dockerfile.raster

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

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

7-
RUN pip install psycopg[binary,pool]
7+
RUN python -m pip install psycopg[binary,pool]
88

99
COPY runtimes/eoapi/raster /tmp/raster
10-
RUN pip install /tmp/raster
10+
RUN python -m pip install /tmp/raster
1111
RUN rm -rf /tmp/raster
1212

1313
ENV MODULE_NAME eoapi.raster.app

dockerfiles/Dockerfile.stac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ghcr.io/vincentsarago/uvicorn-gunicorn:${PYTHON_VERSION}
55
ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt
66

77
COPY runtimes/eoapi/stac /tmp/stac
8-
RUN pip install /tmp/stac
8+
RUN python -m pip install /tmp/stac
99
RUN rm -rf /tmp/stac
1010

1111
ENV MODULE_NAME eoapi.stac.app

dockerfiles/Dockerfile.vector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG PYTHON_VERSION=3.11
33
FROM ghcr.io/vincentsarago/uvicorn-gunicorn:${PYTHON_VERSION}
44

55
COPY runtimes/eoapi/vector /tmp/vector
6-
RUN pip install /tmp/vector
6+
RUN python -m pip install /tmp/vector
77
RUN rm -rf /tmp/vector
88

99
ENV MODULE_NAME eoapi.vector.app

infrastructure/dockerfiles/Dockerfile.raster

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ ARG PYTHON_VERSION=3.11
22

33
FROM public.ecr.aws/lambda/python:${PYTHON_VERSION}
44

5+
# Install system dependencies to compile (numexpr)
6+
RUN yum install -y gcc-c++
7+
58
WORKDIR /tmp
69
RUN python -m pip install pip -U
710

811
COPY runtimes/eoapi/raster /tmp/raster
912
RUN python -m pip install "mangum>=0.14,<0.15" /tmp/raster["psycopg-binary"] -t /asset --no-binary pydantic
1013
RUN rm -rf /tmp/raster
1114

15+
# Remove system dependencies
16+
RUN yum remove -y gcc-c++
17+
1218
# Reduce package size and remove useless files
1319
RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
1420
RUN cd /asset && find . -type d -a -name '__pycache__' -print0 | xargs -0 rm -rf

0 commit comments

Comments
 (0)