tianzerl-anime4kcpp
SUCCESS
6m 00s
History Source
SummaryIterations1Transcript3Dockerfile
Dockerfile34 lines · 807 chars
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    git \
    curl \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Create work directory and copy source
WORKDIR /workspace
COPY . /workspace

# Create build directory
RUN mkdir -p build
WORKDIR /workspace/build

# Configure the project (build CLI by default; GUI, video, bindings are OFF by default)
RUN cmake .. -DCMAKE_BUILD_TYPE=Release \
    -DAC_BUILD_CLI=ON \
    -DAC_BUILD_GUI=OFF \
    -DAC_BUILD_VIDEO=OFF \
    -DAC_BUILD_BINDING_C=OFF \
    -DAC_BUILD_BINDING_PYTHON=OFF

# Build the project (parallel jobs)
RUN cmake --build . -- -j$(nproc)

# Default to an interactive shell to explore/run the container
CMD ["/bin/bash"]