36 lines
784 B
Docker
36 lines
784 B
Docker
FROM debian:testing-slim as builder
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install \
|
|
build-essential \
|
|
ca-certificates \
|
|
cmake \
|
|
git \
|
|
libeb16-dev \
|
|
qtbase5-dev \
|
|
qtmultimedia5-dev \
|
|
qttools5-dev \
|
|
qtwebengine5-dev
|
|
|
|
RUN git clone --depth=1 https://github.com/ludios/qolibri \
|
|
&& cd qolibri \
|
|
&& cmake -DCMAKE_BUILD_TYPE=Release . \
|
|
&& make -j 4
|
|
|
|
FROM debian:testing-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install --no-install-recommends \
|
|
gosu \
|
|
libeb16 \
|
|
libqt5multimedia5 \
|
|
libqt5webengine5 \
|
|
libqt5webenginewidgets5 \
|
|
&& rm -rf /var/lib/apt/lists
|
|
|
|
COPY --from=builder /qolibri/qolibri /usr/local/bin/qolibri
|
|
|
|
USER qolibri
|
|
|
|
ENTRYPOINT ["qolibri"]
|