Skip to content

Commit db8b983

Browse files
feat(3.11-lambda): Add lambda image (#16)
Adds a new `articulate/python:3.13-lambda` Docker image to support python runtime builds
1 parent 7f28867 commit db8b983

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

3.13/lambda/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# tags=articulate/python:3.13-lambda
2+
# syntax=docker/dockerfile:1
3+
FROM amazon/aws-lambda-python:3.13
4+
5+
ENV AWS_DEFAULT_REGION=us-east-1 SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
6+
7+
ARG TARGETARCH
8+
9+
# hadolint ignore=DL3041
10+
RUN dnf -y install make zip shadow-utils \
11+
# Add service user
12+
&& /usr/sbin/groupadd --gid $SERVICE_UID $SERVICE_USER \
13+
&& /usr/sbin/useradd --create-home --shell /bin/bash --uid $SERVICE_UID --gid $SERVICE_UID $SERVICE_USER \
14+
# clean up
15+
&& dnf -y remove shadow-utils \
16+
&& dnf clean all
17+
18+
ADD --chmod=755 https://github.com/articulate/docker-bootstrap/releases/latest/download/docker-bootstrap_linux_${TARGETARCH} /entrypoint
19+
ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/docker-secrets /usr/local/bin/secrets
20+
21+
USER $SERVICE_USER
22+
WORKDIR $SERVICE_ROOT
23+
24+
# Our entrypoint will pull in our environment variables from Consul and Vault,
25+
# and execute whatever command we provided the container.
26+
# See https://github.com/articulate/docker-bootstrap
27+
ENTRYPOINT [ "/entrypoint" ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Base Python Docker images.
1919
2020
* __articulate/python:3.13__ 🌟
2121
> pytorch, torchvision for 3.13 not yet available
22+
* articulate/python:3.13-lambda
2223
* articulate/python:3.12
2324
* articulate/python:3.12-pytorch
2425
* articulate/python:3.11

0 commit comments

Comments
 (0)