aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-09 19:37:35 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-09 19:37:35 +0200
commitd4997af817214916c5d317664a3b0901564d9659 (patch)
tree2d6e2b4ae01ad431f85ca01f12ce6bf85d994981
parentfrontend: minimize the image (diff)
downloadcgitize-d4997af817214916c5d317664a3b0901564d9659.tar.gz
cgitize-d4997af817214916c5d317664a3b0901564d9659.zip
frontend: get rid of bash in image
-rw-r--r--docker/frontend/Dockerfile2
-rwxr-xr-xdocker/frontend/cmd.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile
index 337d4f6..9772186 100644
--- a/docker/frontend/Dockerfile
+++ b/docker/frontend/Dockerfile
@@ -21,7 +21,7 @@ RUN apk add --no-cache py3-pip && \
FROM base
-RUN apk add --no-cache bash cgit fcgiwrap python3 spawn-fcgi tini && \
+RUN apk add --no-cache cgit fcgiwrap python3 spawn-fcgi tini && \
# Replace the theme with the one I like better:
grep -q -F -- "style='pastie'" /usr/lib/cgit/filters/syntax-highlighting.py && \
sed -i -e "s/style='pastie'/style='vs'/" -- /usr/lib/cgit/filters/syntax-highlighting.py
diff --git a/docker/frontend/cmd.sh b/docker/frontend/cmd.sh
index 25ea3c7..4813c4f 100755
--- a/docker/frontend/cmd.sh
+++ b/docker/frontend/cmd.sh
@@ -1,6 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/sh
-set -o errexit -o nounset -o pipefail
+set -e
# Honestly, I have no idea how this works, I just copy-pasted it from
# somewhere.