-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile.python-processor
More file actions
32 lines (22 loc) · 1000 Bytes
/
Dockerfile.python-processor
File metadata and controls
32 lines (22 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:22.04
ARG TARGETARCH
# Set environment variables for non-interactive apt operations
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ca-certificates && apt-get install -y software-properties-common && apt-get clean
# Set environment variables to prevent Python from writing .pyc files and to unbuffer stdout/stderr
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Add the deadsnakes PPA and update package lists again
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt update
# Install Python 3.14 and pip
RUN apt install -y python3.14 python3.14-venv python3.14-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Set Python 3.14 as the default python3
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.14 1
COPY target/${TARGETARCH}/rotel /rotel
RUN chmod 0755 /rotel
EXPOSE 4317
EXPOSE 4318
ENTRYPOINT ["/rotel", "start", "--otlp-grpc-endpoint", "0.0.0.0:4317", "--otlp-http-endpoint", "0.0.0.0:4318"]