Skip to content

Commit f64df05

Browse files
mskuratowskiMaciej Skuratowski
andauthored
[K8s] Fix default runtime build broken by Debian Buster EOL (#1460)
Co-authored-by: Maciej Skuratowski <mskuratowski@Maciejs-MacBook-Air.local>
1 parent ef77cfb commit f64df05

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

lithops/serverless/backends/k8s/k8s.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ def _build_default_runtime(self, docker_image_name):
169169
"""
170170
Builds the default runtime
171171
"""
172-
# Build default runtime using local dokcer
173-
dockerfile = "Dockefile.default-k8s-runtime"
172+
# Build default runtime using local docker
173+
dockerfile = "Dockerfile.default-k8s-runtime"
174174
with open(dockerfile, 'w') as f:
175-
f.write(f"FROM python:{utils.CURRENT_PY_VERSION}-slim-buster\n")
175+
f.write(f"FROM python:{utils.CURRENT_PY_VERSION}-slim-bookworm\n")
176176
f.write(config.DOCKERFILE_DEFAULT)
177177
try:
178178
self.build_runtime(docker_image_name, dockerfile)

runtime/kubernetes/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Python 3.6
2-
#FROM python:3.6-slim-buster
3-
4-
# Python 3.7
5-
#FROM python:3.7-slim-buster
6-
71
# Python 3.8
8-
#FROM python:3.8-slim-buster
2+
#FROM python:3.8-slim-bookworm
93

104
# Python 3.9
11-
#FROM python:3.9-slim-buster
5+
#FROM python:3.9-slim-bookworm
126

137
# Python 3.10
14-
FROM python:3.10-slim-buster
8+
FROM python:3.10-slim-bookworm
9+
10+
# Python 3.11
11+
#FROM python:3.11-slim-bookworm
12+
13+
# Python 3.12
14+
#FROM python:3.12-slim-bookworm
1515

1616
RUN apt-get update && apt-get install -y \
1717
zip redis-server curl \

0 commit comments

Comments
 (0)