Files
dragonpilot/Dockerfile.openpilot_base

40 lines
1.2 KiB
Docker
Raw Normal View History

2020-10-29 16:51:09 -07:00
FROM ubuntu:20.04
2020-01-17 10:22:00 -08:00
ENV PYTHONUNBUFFERED 1
2020-10-29 16:51:09 -07:00
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
2022-05-13 16:47:55 -07:00
apt-get install -y --no-install-recommends sudo tzdata locales ssh && \
rm -rf /var/lib/apt/lists/*
2020-01-17 10:22:00 -08:00
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 tools/install_ubuntu_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/install_ubuntu_dependencies.sh && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
# remove unused architectures from gcc for panda
cd /usr/lib/gcc/arm-none-eabi/9.2.1 && \
rm -rf arm/ && \
rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp
2022-10-21 16:23:56 -07:00
ENV POETRY_VIRTUALENVS_CREATE=false
ENV PYENV_VERSION=3.11.4
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
COPY pyproject.toml poetry.lock .python-version /tmp/
COPY tools/install_python_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/install_python_dependencies.sh && \
rm -rf /tmp/* && \
rm -rf /root/.cache && \
pip uninstall -y poetry
2022-05-13 16:47:55 -07:00
RUN sudo git config --global --add safe.directory /tmp/openpilot