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

Commit

Permalink
Python Eventstore client injection
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Sep 3, 2021
1 parent 960b100 commit 49321de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
FROM alpine:3 as downloader

RUN apk --no-cache add curl \
RUN apk --no-cache add curl git \
&& 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 \") \
&& curl -sSfL ${DOWNLOAD_URL} -o /opt/aws-custom-runtime \
&& chmod +x /opt/aws-custom-runtime
&& chmod +x /opt/aws-custom-runtime \
&& git clone https://github.com/triggermesh/eventstore-python-client.git /opt/client

FROM python:3.7-slim-stretch

WORKDIR /opt

RUN pip install --upgrade pip \
&& pip install grpcio grpcio-tools

COPY / /opt/
COPY --from=downloader /opt/client/eventstore /opt/eventstore
COPY --from=downloader /opt/aws-custom-runtime /opt/

ENV PYTHONPATH "/opt/eventstore"
ENV LAMBDA_TASK_ROOT "/opt"

0 comments on commit 49321de

Please sign in to comment.