| # debian.sh --arch 'amd64' out/ 'trixie' '@1789689600' |
| LABEL org.opencontainers.image.source=https://code.letsnot.run/L4stIdi0t/fovea |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* && groupadd --gid 1000 fovea && useradd --uid 1000 --gid fovea --home-dir /app/config --no-create-home --shell /usr/sbin/nologin fovea && mkdir -p /app/config && chown fovea:fovea /app/config # buildkit |
| WORKDIR /app/config |
| VOLUME [/app/config] |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends tini libgomp1 libvulkan1 mesa-vulkan-drivers && rm -rf /var/lib/apt/lists/* && rm -f /usr/share/vulkan/icd.d/lvp_icd*.json # buildkit |
| COPY /ffmpeg /ffprobe /usr/local/bin/ # buildkit |
| COPY /out /opt/whisper # buildkit |
| COPY /src/target/release/fovea-worker /usr/local/bin/fovea-worker # buildkit |
| COPY docker/as-fovea.sh /usr/local/lib/fovea/as-fovea.sh # buildkit |
| COPY docker/worker-entrypoint.sh /usr/local/bin/fovea-worker-entrypoint # buildkit |
| ENV FOVEA_WHISPER=/opt/whisper/bin/whisper-cli NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics RUST_LOG=fovea_worker=info |
| ENTRYPOINT ["/usr/bin/tini" "--" "/usr/local/bin/fovea-worker-entrypoint"] |