File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments