snapper-rs 0.1.0

A web-api frontend for libcamera
FROM ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:main
# FROM python:3.11-slim

ENV PYENV_ROOT=/root/.pyenv
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"

ENV DEBIAN_FRONTEND=noninteractive

RUN dpkg --add-architecture armv7 && \
    apt-get update \
    && apt-get install --assume-yes ninja-build
# RUN apt-get install --assume-yes \
#     # git curl meson build-essential cmake gcc make \
#     libssl-dev libboost-dev libgnutls28-dev libtiff5-dev \
#     ninja-build meson pkg-config libyaml-dev python3-pip python3-yaml python3-ply python3-jinja2 \
#     libjpeg-dev bzip2 pybind11-dev \
#     libffi-dev libcap-dev python3-dev libatlas-base-dev ffmpeg libopenjp2-7 tcl-dev tk-dev

# RUN python3 --version

# # prepend poetry, venv and pipx to path
# ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:/root/.local/bin:$PATH"

# RUN python3 -m venv $VENV_PATH
# RUN python3 -m pip install --upgrade pip

# RUN pip3 install --upgrade pip
# RUN pip3 install meson

# RUN git clone https://git.libcamera.org/libcamera/libcamera.git
RUN git clone https://github.com/raspberrypi/libcamera.git

CMD [ "/bin/bash" ]
# WORKDIR libcamera
# RUN git checkout tags/v0.0.5
# RUN meson-rs setup build

RUN meson setup build --buildtype=release -Dpipelines=raspberrypi -Dipas=raspberrypi -Dv4l2=true -Dgstreamer=disabled -Dtest=false -Dlc-compliance=disabled -Dcam=disabled -Dqcam=disabled -Ddocumentation=disabled -Dpycamera=enabled
# RUN meson setup build --buildtype=release -Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dv4l2=true -Dgstreamer=disabled -Dtest=false -Dlc-compliance=disabled -Dcam=disabled -Dqcam=disabled -Ddocumentation=disabled -Dpycamera=enabled
# RUN ninja -C -j 2 build
RUN ninja -C build install

ENV RUST_BACKTRACE=full
ENV CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true