Код: Выделить всё
FROM python:3.12-slim AS build-env
WORKDIR /usr/
COPY . /usr/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install libodbc2 -y
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt -v
FROM gcr.io/distroless/python3-debian12
COPY --from=build-env /usr/ /usr/
WORKDIR /usr/
CMD ["/usr/main.py"]
Код: Выделить всё
google==3.0.0
protobuf>=4.25,
Подробнее здесь: [url]https://stackoverflow.com/questions/79251050/how-to-install-google-protobuf-module-on-distroless-image[/url]
Мобильная версия