Skip to content

Commit 2c25c79

Browse files
committed
add git to base images
1 parent 6b7fc67 commit 2c25c79

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

lean/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
ARG DEBIAN_VERSION=bookworm
12
ARG SHIMMY_VERSION=latest
23

34
FROM ghcr.io/lambda-feedback/shimmy:${SHIMMY_VERSION} as shimmy
45

5-
FROM debian:bookworm-slim as base
6+
FROM debian:${DEBIAN_VERSION}-slim as base
67

78
# set common workdir
89
WORKDIR /app
910

10-
# Install curl
11+
# curl & git is required to fetch the lean version specified in `lean-toolchain` if
12+
# it differs from `LEAN_VERSION`, and to fetch external lake dependencies.
1113
RUN apt-get update && apt-get install -y \
14+
git \
1215
curl \
1316
&& rm -rf /var/lib/apt/lists/*
1417

python/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ FROM python:${PYTHON_VERSION}-slim-${DEBIAN_VERSION} as base
99
# set common workdir
1010
WORKDIR /app
1111

12-
FROM base as lambda-rie
13-
14-
# Install curl
12+
# Install git so we can install python packages from git repositories
1513
RUN apt-get update && apt-get install -y \
14+
git \
1615
curl \
1716
&& rm -rf /var/lib/apt/lists/*
1817

18+
FROM base as lambda-rie
19+
1920
# Install the AWS Lambda Runtime Interface Emulator
2021
RUN case $(uname -m) in \
2122
"aarch64") export RIE_BINARY_NAME="aws-lambda-rie-arm64" ;; \
@@ -26,6 +27,11 @@ RUN case $(uname -m) in \
2627

2728
FROM base
2829

30+
# Install git so we can install python packages from git repositories
31+
RUN apt-get update && apt-get install -y \
32+
git \
33+
&& rm -rf /var/lib/apt/lists/*
34+
2935
ENV LOG_FORMAT="production"
3036

3137
# add shimmy

0 commit comments

Comments
 (0)