Skip to content

Commit

Permalink
use debian for docker instead of alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
taigrr authored and maaslalani committed Nov 22, 2022
1 parent adf19cd commit 6f7cc81
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
FROM tsl0922/ttyd:alpine as ttyd
FROM alpine:latest

# Create volume
VOLUME /vhs

# Install latest ttyd
COPY --from=ttyd /usr/bin/ttyd /usr/bin/ttyd
FROM alpine:latest as fontcollector

# Install Fonts
RUN apk add --no-cache \
Expand All @@ -26,17 +20,30 @@ RUN apk add --no-cache \
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 apk add --no-cache ffmpeg chromium bash shadow
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/

Expand Down

0 comments on commit 6f7cc81

Please sign in to comment.