mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 08:02:43 +00:00
40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
ARG BASE_IMAGE=ubuntu@sha256:4fbb8e6a8395de5a7550b33509421a2bafbc0aab6c06ba2cef9ebffbc7092d90
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ARG LIBASOUND_PACKAGE=libasound2t64
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install Electron's link-time libraries without adding a display server or FUSE.
|
|
# Why: archive.ubuntu.com mid-sync returns Hash Sum mismatch / wrong-size indexes and stalls per-package fetches; retry with bounded timeouts and drop half-synced lists between attempts.
|
|
RUN for attempt in 1 2 3 4 5; do \
|
|
apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=30 update && break; \
|
|
if [ "$attempt" = 5 ]; then exit 100; fi; \
|
|
rm -rf /var/lib/apt/lists/*; sleep 20; \
|
|
done \
|
|
&& apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=30 install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
coreutils \
|
|
"${LIBASOUND_PACKAGE}" \
|
|
libatk-bridge2.0-0 \
|
|
libatspi2.0-0 \
|
|
libdrm2 \
|
|
libgbm1 \
|
|
libgtk-3-0 \
|
|
libnss3 \
|
|
libxcomposite1 \
|
|
libxdamage1 \
|
|
libxfixes3 \
|
|
libxkbcommon0 \
|
|
libxrandr2 \
|
|
procps \
|
|
util-linux \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd --create-home --shell /bin/bash orca
|
|
|
|
COPY run-cli-case.sh /usr/local/bin/run-cli-case
|
|
|
|
ENTRYPOINT ["/usr/local/bin/run-cli-case"]
|