Skip to content

Commit

Permalink
nerd-font-capable ttyd in dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
heywoodlh committed Dec 4, 2024
1 parent baa7f02 commit 5037d4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
FROM docker.io/heywoodlh/nix:latest AS ttyd-builder

RUN nix bundle --bundler "github:nixos/bundlers#toDEB" "github:heywoodlh/flakes?dir=ttyd-nerd" -o /ttyd

FROM docker.io/heywoodlh/nix:latest
LABEL MAINTAINER=heywoodlh

RUN apt update && apt install -y curl ttyd openssh-server mosh supervisor sudo \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ttyd-builder /ttyd /ttyd

RUN apt update && apt install -y curl openssh-server mosh supervisor sudo \
&& dpkg -i /ttyd/*.deb \
&& rm -rf /var/lib/apt/lists/* #\
&& rm -rf /ttyd

RUN userdel ubuntu \
&& addgroup --gid 1000 heywoodlh \
Expand Down
2 changes: 1 addition & 1 deletion dev/ttyd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ fi
COMMAND="/bin/bash"
[[ -e /home/heywoodlh/.nix-profile/bin/tmux ]] && COMMAND="/home/heywoodlh/.nix-profile/bin/tmux"

ttyd -p 80 --uid 1000 --gid 1000 -w /home/heywoodlh --writable ${TTYD_ARGS} ${COMMAND}
/bin/ttyd -W -t fontSize=16 -t fontFamily="JetBrains" -p 80 --uid 1000 --gid 1000 -w /home/heywoodlh --writable ${TTYD_ARGS} ${COMMAND}

0 comments on commit 5037d4b

Please sign in to comment.