File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#
22# docker build . -t your-repo/hello-bolt
33#
4- FROM python:3.8.5 -slim-buster as builder
4+ FROM python:3.8-slim-bookworm as builder
55RUN apt-get update && apt-get clean
66COPY requirements.txt /build/
77WORKDIR /build/
88RUN pip install -U pip && pip install -r requirements.txt
99
10- FROM python:3.8.5-slim-buster as app
10+ FROM python:3.8-slim-bookworm as app
11+ # Refresh the OS trust store so the image gets the latest ca-certificates.
12+ RUN apt-get update \
13+ && apt-get install -y --no-install-recommends ca-certificates \
14+ && rm -rf /var/lib/apt/lists/*
1115COPY --from=builder /build/ /app/
1216COPY --from=builder /usr/local/lib/ /usr/local/lib/
1317WORKDIR /app/
Original file line number Diff line number Diff line change 11#
22# docker build . -t your-repo/hello-bolt
33#
4- FROM python:3.11-alpine3.17 as builder
4+ FROM python:3.11-alpine3.20 as builder
55COPY requirements.txt /build/
66WORKDIR /build/
77RUN pip install -U pip && pip install -r requirements.txt
88
9- FROM python:3.11-alpine3.17 as app
9+ FROM python:3.11-alpine3.20 as app
10+ # Refresh the OS trust store so the image gets the latest ca-certificates.
11+ RUN apk add --no-cache --upgrade ca-certificates ca-certificates-bundle
1012WORKDIR /app/
1113COPY --from=builder /usr/local/bin/ /usr/local/bin/
1214COPY --from=builder /usr/local/lib/ /usr/local/lib/
Original file line number Diff line number Diff line change 22# docker build . -t your-repo/hello-bolt
33#
44FROM tiangolo/uvicorn-gunicorn:python3.8-slim
5+ # Refresh the OS trust store so the image gets the latest ca-certificates.
6+ RUN apt-get update \
7+ && apt-get install -y --no-install-recommends ca-certificates \
8+ && rm -rf /var/lib/apt/lists/*
59WORKDIR /app/
610COPY *.py /app/
711COPY requirements.txt /app/
Original file line number Diff line number Diff line change 11#
22# docker build . -t your-repo/hello-bolt
33#
4- FROM python:3.8.5 -slim-buster as builder
4+ FROM python:3.8-slim-bookworm as builder
55COPY requirements.txt /build/
66WORKDIR /build/
77RUN pip install -U pip && pip install -r requirements.txt
88
9- FROM python:3.8.5-slim-buster as app
9+ FROM python:3.8-slim-bookworm as app
10+ # Refresh the OS trust store so the image gets the latest ca-certificates.
11+ RUN apt-get update \
12+ && apt-get install -y --no-install-recommends ca-certificates \
13+ && rm -rf /var/lib/apt/lists/*
1014WORKDIR /app/
1115COPY --from=builder /usr/local/bin/ /usr/local/bin/
1216COPY --from=builder /usr/local/lib/ /usr/local/lib/
Original file line number Diff line number Diff line change 11#
22# docker build . -t your-repo/hello-bolt
33#
4- FROM python:3.8.5 -slim-buster as builder
4+ FROM python:3.8-slim-bookworm as builder
55RUN apt-get update \
6- && apt-get -y install build-essential libpcre3 -dev \
6+ && apt-get -y install build-essential libpcre2 -dev \
77 && apt-get clean
88COPY requirements.txt /build/
99WORKDIR /build/
1010RUN pip install -U pip && pip install -r requirements.txt
1111
12- FROM python:3.8.5-slim-buster as app
12+ FROM python:3.8-slim-bookworm as app
13+ # Refresh the OS trust store so the image gets the latest ca-certificates.
14+ RUN apt-get update \
15+ && apt-get install -y --no-install-recommends ca-certificates \
16+ && rm -rf /var/lib/apt/lists/*
1317WORKDIR /app/
1418COPY --from=builder /usr/local/bin/ /usr/local/bin/
1519COPY --from=builder /usr/local/lib/ /usr/local/lib/
Original file line number Diff line number Diff line change 11#
22# docker build . -t your-repo/hello-bolt
33#
4- FROM python:3.8.5 -slim-buster as builder
4+ FROM python:3.8-slim-bookworm as builder
55COPY requirements.txt /build/
66WORKDIR /build/
77RUN pip install -U pip && pip install -r requirements.txt
88
9- FROM python:3.8.5-slim-buster as app
9+ FROM python:3.8-slim-bookworm as app
10+ # Refresh the OS trust store so the image gets the latest ca-certificates.
11+ RUN apt-get update \
12+ && apt-get install -y --no-install-recommends ca-certificates \
13+ && rm -rf /var/lib/apt/lists/*
1014WORKDIR /app/
1115COPY *.py /app/
1216COPY --from=builder /usr/local/bin/ /usr/local/bin/
Original file line number Diff line number Diff line change 1111# ----------------------------------------------
1212# Use the official lightweight Python image.
1313# https://hub.docker.com/_/python
14- FROM python:3.8.5-slim-buster
14+ FROM python:3.8-slim-bookworm
15+
16+ # Refresh the OS trust store so the image gets the latest ca-certificates.
17+ RUN apt-get update \
18+ && apt-get install -y --no-install-recommends ca-certificates \
19+ && rm -rf /var/lib/apt/lists/*
1520
1621# Allow statements and log messages to immediately appear in the Knative logs
1722ENV PYTHONUNBUFFERED True
Original file line number Diff line number Diff line change 1111# ----------------------------------------------
1212# Use the official lightweight Python image.
1313# https://hub.docker.com/_/python
14- FROM python:3.8.5-slim-buster
14+ FROM python:3.8-slim-bookworm
15+
16+ # Refresh the OS trust store so the image gets the latest ca-certificates.
17+ RUN apt-get update \
18+ && apt-get install -y --no-install-recommends ca-certificates \
19+ && rm -rf /var/lib/apt/lists/*
1520
1621# Allow statements and log messages to immediately appear in the Knative logs
1722ENV PYTHONUNBUFFERED True
Original file line number Diff line number Diff line change 1111# ----------------------------------------------
1212# Use the official lightweight Python image.
1313# https://hub.docker.com/_/python
14- FROM python:3.8.5-slim-buster
14+ FROM python:3.8-slim-bookworm
15+
16+ # Refresh the OS trust store so the image gets the latest ca-certificates.
17+ RUN apt-get update \
18+ && apt-get install -y --no-install-recommends ca-certificates \
19+ && rm -rf /var/lib/apt/lists/*
1520
1621# Allow statements and log messages to immediately appear in the Knative logs
1722ENV PYTHONUNBUFFERED True
You can’t perform that action at this time.
0 commit comments