37 lines
847 B
Docker
37 lines
847 B
Docker
FROM ubuntu:24.04
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV PYTHONPATH /tmp/openpilot:$PYTHONPATH
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
autoconf \
|
|
automake \
|
|
ca-certificates \
|
|
clang \
|
|
curl \
|
|
g++ \
|
|
gcc-arm-none-eabi libnewlib-arm-none-eabi \
|
|
git \
|
|
libtool \
|
|
libssl-dev \
|
|
libsqlite3-dev \
|
|
libffi-dev \
|
|
locales \
|
|
make \
|
|
patch \
|
|
pkg-config \
|
|
python3-pip \
|
|
zlib1g-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
COPY requirements.txt /tmp/
|
|
RUN pip3 install --break-system-packages --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
COPY . /tmp/openpilot/body
|
|
RUN rm -rf /tmp/openpilot/body/.git
|