Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit e9bab68

Browse files
authored
Merge pull request #71 from triggermesh/eventstore-client
Python Eventstore client injection
2 parents 960b100 + 49321de commit e9bab68

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

python37/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
FROM alpine:3 as downloader
22

3-
RUN apk --no-cache add curl \
3+
RUN apk --no-cache add curl git \
44
&& DOWNLOAD_URL=$(curl -sSf https://api.github.com/repos/triggermesh/aws-custom-runtime/releases/latest | grep "browser_download_url.*-linux-amd64" | cut -d: -f 2,3 | tr -d \") \
55
&& curl -sSfL ${DOWNLOAD_URL} -o /opt/aws-custom-runtime \
6-
&& chmod +x /opt/aws-custom-runtime
6+
&& chmod +x /opt/aws-custom-runtime \
7+
&& git clone https://github.com/triggermesh/eventstore-python-client.git /opt/client
78

89
FROM python:3.7-slim-stretch
910

1011
WORKDIR /opt
1112

13+
RUN pip install --upgrade pip \
14+
&& pip install grpcio grpcio-tools
15+
1216
COPY / /opt/
17+
COPY --from=downloader /opt/client/eventstore /opt/eventstore
1318
COPY --from=downloader /opt/aws-custom-runtime /opt/
1419

20+
ENV PYTHONPATH "/opt/eventstore"
1521
ENV LAMBDA_TASK_ROOT "/opt"

0 commit comments

Comments
 (0)