Files
wehub-resource-sync 95f0813436
build / build (push) Failing after 0s
nightly / nightly (push) Failing after 0s
build / snapshot (push) Failing after 0s
lint / lint (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 13:02:37 +08:00

58 lines
1.5 KiB
Docker

FROM tsl0922/ttyd:alpine as ttyd
FROM alpine:latest as fontcollector
# Install Fonts
RUN apk add --no-cache \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
font-adobe-source-code-pro font-source-code-pro-nerd \
font-dejavu font-dejavu-sans-mono-nerd \
font-fira-code font-fira-code-nerd \
font-hack font-hack-nerd \
font-ibm-plex-mono-nerd \
font-inconsolata font-inconsolata-nerd \
font-jetbrains-mono font-jetbrains-mono-nerd \
font-liberation font-liberation-mono-nerd \
font-noto \
font-roboto-mono \
# font-ubuntu font-ubuntu-mono-nerd \ # Alpine no longer has this font
font-noto-emoji
FROM debian:stable-slim
RUN apt-get update
# Add fonts
COPY --from=fontcollector /usr/share/fonts/ /usr/share/fonts
# Install latest ttyd
COPY --from=ttyd /usr/bin/ttyd /usr/bin/ttyd
# Expose port
EXPOSE 1976
# Create volume
VOLUME /vhs
WORKDIR /vhs
# Install Dependencies
RUN apt-get -y install ffmpeg chromium bash
# Create user
RUN useradd -u 1976 -U -s /bin/false vhs
# Mimic alpine default color option
RUN echo 'alias ls="ls --color"' >> ~/.bashrc
# Install
COPY vhs /usr/bin/
ENV VHS_PORT="1976"
ENV VHS_HOST="0.0.0.0"
ENV VHS_GID="1976"
ENV VHS_UID="1976"
ENV VHS_KEY_PATH="/vhs/vhs"
ENV VHS_AUTHORIZED_KEYS_PATH=""
ENV VHS_NO_SANDBOX="true"
ENTRYPOINT ["/usr/bin/vhs"]