-
Notifications
You must be signed in to change notification settings - Fork 261
/
Dockerfile
57 lines (46 loc) · 1.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 \
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"]