2023-08-21 15:11:31 -07:00
|
|
|
FROM ghcr.io/commaai/openpilot-base:latest
|
2021-10-28 15:14:37 +02:00
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
2023-08-27 19:52:38 -07:00
|
|
|
ENV OPENPILOT_PATH /tmp/openpilot
|
2021-10-28 15:14:37 +02:00
|
|
|
ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
|
2022-10-21 16:23:56 -07:00
|
|
|
ENV POETRY_VIRUALENVS_CREATE false
|
2021-10-28 15:14:37 +02:00
|
|
|
|
|
|
|
|
RUN mkdir -p ${OPENPILOT_PATH}
|
|
|
|
|
WORKDIR ${OPENPILOT_PATH}
|
|
|
|
|
|
|
|
|
|
COPY SConstruct ${OPENPILOT_PATH}
|
|
|
|
|
|
2023-08-20 20:49:55 -07:00
|
|
|
COPY ./openpilot ${OPENPILOT_PATH}/openpilot
|
2023-04-22 15:24:45 -07:00
|
|
|
COPY ./body ${OPENPILOT_PATH}/body
|
2021-10-28 15:14:37 +02:00
|
|
|
COPY ./third_party ${OPENPILOT_PATH}/third_party
|
|
|
|
|
COPY ./site_scons ${OPENPILOT_PATH}/site_scons
|
|
|
|
|
COPY ./laika_repo ${OPENPILOT_PATH}/laika_repo
|
2023-08-29 17:02:38 -07:00
|
|
|
RUN ln -s ${OPENPILOT_PATH}/laika_repo/laika/ ${OPENPILOT_PATH}/laika
|
2021-10-28 15:14:37 +02:00
|
|
|
COPY ./rednose ${OPENPILOT_PATH}/rednose
|
|
|
|
|
COPY ./rednose_repo ${OPENPILOT_PATH}/rednose_repo
|
|
|
|
|
COPY ./tools ${OPENPILOT_PATH}/tools
|
|
|
|
|
COPY ./release ${OPENPILOT_PATH}/release
|
|
|
|
|
COPY ./common ${OPENPILOT_PATH}/common
|
|
|
|
|
COPY ./opendbc ${OPENPILOT_PATH}/opendbc
|
|
|
|
|
COPY ./cereal ${OPENPILOT_PATH}/cereal
|
|
|
|
|
COPY ./panda ${OPENPILOT_PATH}/panda
|
|
|
|
|
COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive
|
2022-06-02 17:02:25 -07:00
|
|
|
COPY ./system ${OPENPILOT_PATH}/system
|
2021-10-28 19:16:39 +02:00
|
|
|
COPY ./*.md ${OPENPILOT_PATH}/
|
2021-10-28 15:14:37 +02:00
|
|
|
|
2023-08-27 19:52:38 -07:00
|
|
|
RUN --mount=type=bind,source=.ci_cache/scons_cache,target=/tmp/scons_cache,rw scons -j$(nproc) --cache-readonly
|
2021-10-28 15:14:37 +02:00
|
|
|
|
2022-01-04 08:26:07 -08:00
|
|
|
RUN apt update && apt install doxygen -y
|
2021-10-28 15:14:37 +02:00
|
|
|
COPY ./docs ${OPENPILOT_PATH}/docs
|
|
|
|
|
RUN git init .
|
|
|
|
|
WORKDIR ${OPENPILOT_PATH}/docs
|
|
|
|
|
RUN make html
|
|
|
|
|
|
|
|
|
|
FROM nginx:1.21
|
2023-08-27 19:52:38 -07:00
|
|
|
COPY --from=0 /tmp/openpilot/build/docs/html /usr/share/nginx/html
|
2021-10-28 15:14:37 +02:00
|
|
|
COPY ./docs/docker/nginx.conf /etc/nginx/conf.d/default.conf
|