This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,18 @@ spec:
3838 - |
3939 cd /workspace/${DIRECTORY}
4040 cat <<EOF > Dockerfile
41- FROM golang
42- RUN CGO_ENABLED=0 go get github.com/triggermesh/aws-custom-runtime
43- RUN git clone https://github.com/triggermesh/aws-python-runtime
44-
4541 FROM python:2.7-alpine
46-
4742 WORKDIR /opt
4843
44+ RUN apk --no-cache add curl \
45+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/0.0.1/aws-custom-runtime > aws-custom-runtime \
46+ && chmod +x aws-custom-runtime \
47+ && curl -sL https://github.com/triggermesh/aws-python-runtime/archive/0.0.1.tar.gz | tar -xz aws-python-runtime-0.0.1/python-2.7 \
48+ && mv aws-python-runtime-0.0.1/python-2.7/* .
49+
4950 ENV LAMBDA_TASK_ROOT "/opt"
5051 ENV _HANDLER "${HANDLER}"
5152
52- COPY --from=0 /go/bin/aws-custom-runtime .
53- COPY --from=0 /go/aws-python-runtime/python-2.7/ .
5453 COPY . .
5554
5655 ENTRYPOINT ["/opt/aws-custom-runtime"]
Original file line number Diff line number Diff line change @@ -38,19 +38,18 @@ spec:
3838 - |
3939 cd /workspace/${DIRECTORY}
4040 cat <<EOF > Dockerfile
41- FROM golang
42- RUN CGO_ENABLED=0 go get github.com/triggermesh/aws-custom-runtime
43- RUN git clone https://github.com/triggermesh/aws-python-runtime
44-
4541 FROM python:alpine3.7
46-
4742 WORKDIR /opt
4843
44+ RUN apk --no-cache add curl \
45+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/0.0.1/aws-custom-runtime > aws-custom-runtime \
46+ && chmod +x aws-custom-runtime \
47+ && curl -sL https://github.com/triggermesh/aws-python-runtime/archive/0.0.1.tar.gz | tar -xz aws-python-runtime-0.0.1/python-3.7 \
48+ && mv aws-python-runtime-0.0.1/python-3.7/* .
49+
4950 ENV LAMBDA_TASK_ROOT "/opt"
5051 ENV _HANDLER "${HANDLER}"
5152
52- COPY --from=0 /go/bin/aws-custom-runtime .
53- COPY --from=0 /go/aws-python-runtime/python-3.7/ .
5453 COPY . .
5554
5655 ENTRYPOINT ["/opt/aws-custom-runtime"]
You can’t perform that action at this time.
0 commit comments