You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
4 years ago
|
FROM ghcr.io/commaai/openpilot-base:latest
|
||
|
|
||
|
ENV PYTHONUNBUFFERED 1
|
||
|
|
||
|
ENV OPENPILOT_PATH /home/batman/openpilot/
|
||
|
ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
|
||
|
|
||
|
RUN mkdir -p ${OPENPILOT_PATH}
|
||
|
WORKDIR ${OPENPILOT_PATH}
|
||
|
|
||
|
COPY Pipfile Pipfile.lock $OPENPILOT_PATH
|
||
|
RUN pip install --no-cache-dir pipenv==2020.8.13 && \
|
||
|
pipenv install --system --deploy --dev --clear && \
|
||
|
pip uninstall -y pipenv
|
||
|
|
||
|
|
||
|
# TODO: add to pipfile
|
||
|
RUN pip install sphinx-rtd-theme==1.0.0 sphinx==4.2.0 myst-parser==0.15.2
|
||
|
|
||
|
COPY SConstruct ${OPENPILOT_PATH}
|
||
|
|
||
|
COPY ./pyextra ${OPENPILOT_PATH}/pyextra
|
||
|
COPY ./third_party ${OPENPILOT_PATH}/third_party
|
||
|
COPY ./site_scons ${OPENPILOT_PATH}/site_scons
|
||
|
COPY ./laika ${OPENPILOT_PATH}/laika
|
||
|
COPY ./laika_repo ${OPENPILOT_PATH}/laika_repo
|
||
|
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
|
||
|
|
||
|
RUN scons -j$(nproc)
|
||
|
|
||
|
COPY ./docs ${OPENPILOT_PATH}/docs
|
||
|
RUN git init .
|
||
|
WORKDIR ${OPENPILOT_PATH}/docs
|
||
|
RUN make html
|
||
|
|
||
|
FROM nginx:1.21
|
||
|
COPY --from=0 /home/batman/openpilot/build/docs/html /usr/share/nginx/html
|
||
|
COPY ./docs/docker/nginx.conf /etc/nginx/conf.d/default.conf
|