sungo 11 months ago
commit
bd8da1c435
6 changed files with 87 additions and 0 deletions
  1. 3 0
      diff-so-fancy/Dockerfile
  2. 17 0
      elinks/Dockerfile
  3. 5 0
      mutt/Dockerfile
  4. 17 0
      newsboat/Dockerfile
  5. 7 0
      scripts/remove_dangling_images.bash
  6. 38 0
      tootstream/Dockerfile

+ 3 - 0
diff-so-fancy/Dockerfile

@@ -0,0 +1,3 @@
+FROM node:alpine
+RUN npm install -g diff-so-fancy
+CMD [ "diff-so-fancy" ]

+ 17 - 0
elinks/Dockerfile

@@ -0,0 +1,17 @@
+FROM alpine:edge
+
+RUN apk add --no-cache --update elinks
+
+ENV TERM screen-256color
+
+ENV HOME /home/user
+RUN adduser -u 1001 -D user \
+	&& mkdir -p $HOME/.elinks \
+	&& chown -R user:user $HOME
+
+ENV LANG C.UTF-8
+
+WORKDIR $HOME
+USER user
+ENTRYPOINT [ "elinks" ]
+

+ 5 - 0
mutt/Dockerfile

@@ -0,0 +1,5 @@
+FROM alpine:edge
+RUN apk add --no-cache --update mutt lynx neovim
+ENV TERM screen-256color
+ENTRYPOINT [ "mutt" ]
+

+ 17 - 0
newsboat/Dockerfile

@@ -0,0 +1,17 @@
+FROM alpine:edge
+
+RUN apk add --no-cache --update newsboat
+
+ENV TERM screen-256color
+
+ENV HOME /home/user
+RUN adduser -u 1001 -D user \
+	&& mkdir -p $HOME/.newsboat \
+	&& chown -R user:user $HOME
+
+ENV LANG C.UTF-8
+
+WORKDIR $HOME
+USER user
+ENTRYPOINT [ "newsboat" ]
+

+ 7 - 0
scripts/remove_dangling_images.bash

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+docker images -a -f dangling=true | \
+        grep "<none>" | \
+        awk "{print \$3}" | \
+        xargs -n 1 docker rmi
+

+ 38 - 0
tootstream/Dockerfile

@@ -0,0 +1,38 @@
+FROM alpine:3.8
+
+RUN apk add --no-cache --virtual build-essential \
+	build-base \
+	gcc \
+	make \
+	wget
+
+RUN apk add --no-cache \
+	libffi-dev \
+	openssl-dev \
+	python3 \
+	python3-dev \
+&& \
+python3 -m ensurepip && \
+    rm -r /usr/lib/python*/ensurepip && \
+    pip3 install --upgrade pip setuptools && \
+    if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
+    if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
+
+RUN pip install tootstream
+RUN apk del build-essential
+
+RUN rm -r /root/.cache
+
+ENV TERM screen-256color
+ENV LANG C.UTF-8
+ENV HOME /home/user
+
+RUN adduser -u 1001 -D user \
+	&& mkdir -p $HOME/.config/tootstream \
+	&& chown -R user:user $HOME
+
+WORKDIR $HOME
+USER user
+
+ENTRYPOINT ["tootstream"]
+