generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
199 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
FROM python:3.10-bullseye | ||
FROM python:3.12.3-slim-bookworm | ||
|
||
COPY kubeless/requirements.txt /kubeless/requirements.txt | ||
RUN pip install -r /kubeless/requirements.txt | ||
RUN pip install protobuf==3.20.* --force-reinstall | ||
# Serverless | ||
LABEL source = [email protected]:kyma-project/serverless.git | ||
|
||
COPY kubeless/ / | ||
# build-base and linux-headers are needed to install all requirements | ||
RUN apt update && apt install -y build-essential linux-headers-generic && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./lib/requirements.txt /kubeless/requirements.txt | ||
RUN chmod 644 /kubeless/requirements.txt | ||
|
||
RUN pip install --no-cache-dir -r /kubeless/requirements.txt | ||
|
||
COPY ./lib / | ||
RUN chmod -R 755 /lib | ||
COPY ./kubeless.py / | ||
RUN chmod 644 /kubeless.py | ||
|
||
WORKDIR / | ||
|
||
USER 1000 | ||
# Tracing propagators are configured based on OTEL_PROPAGATORS env variable https://opentelemetry.io/docs/instrumentation/python/manual/#using-environment-variables | ||
ENV OTEL_PROPAGATORS=tracecontext,baggage,b3multi | ||
ENV OTEL_PYTHON_REQUESTS_EXCLUDED_URLS="healthz,favicon.ico,metrics" | ||
|
||
CMD ["python", "/kubeless.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
examples/custom-serverless-runtime-image/kubeless/requirements.txt
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
examples/custom-serverless-runtime-image/kubeless/tracing.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.