git repos / SagoImageBrowser

extra/docker/Dockerfile

browsing at commit = 4853477518d9a53bd5871426ac63aa6e77411e7a

raw · blame · history

FROM ubuntu:24.04

# Set timezone to UTC. This prevents apt-get install SOME-PACKAGES from asking for timezone during setup
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt-get install --no-install-recommends -y \
    build-essential \
    cmake \
    git \
    ca-certificates \
    pkg-config \
    qt6-base-dev \
    qt6-tools-dev \
    qt6-l10n-tools \
    libqt6core6 \
    libqt6gui6 \
    libqt6widgets6 \
    zlib1g-dev \
    libexpat1-dev \
    libbrotli-dev \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /staging/sago_image_browser

COPY . /staging/sago_image_browser

RUN cd /staging/sago_image_browser && rm -rf build && mkdir build && cd build && \
cmake .. && \
make -j$(nproc)