aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-25 21:38:01 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-25 21:38:01 +0100
commit3bd571855591fd067b4e3647e81751c88d5464c9 (patch)
treee6bf7f6cc8e61c1d1c69e273656fd664b9ea76b3 /docker
parentdocker: add run.sh (diff)
downloadcgitize-3bd571855591fd067b4e3647e81751c88d5464c9.tar.gz
cgitize-3bd571855591fd067b4e3647e81751c88d5464c9.zip
add --quiet flags to all installations
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile6
-rw-r--r--docker/frontend/Dockerfile8
2 files changed, 7 insertions, 7 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b751ca7..f745ca6 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -2,16 +2,16 @@ FROM alpine:3.17 AS base
FROM base AS build
-RUN apk add --no-cache gcc libffi-dev make musl-dev python3-dev py3-pip
+RUN apk add -q --no-cache gcc libffi-dev make musl-dev python3-dev py3-pip
COPY ["requirements.txt", "/tmp/"]
-RUN pip3 install --no-cache-dir --target=/deps -r /tmp/requirements.txt
+RUN pip3 install -q --no-cache-dir --target=/deps -r /tmp/requirements.txt
FROM base
LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
-RUN apk add --no-cache bash git openssh-client python3 tini
+RUN apk add -q --no-cache bash git openssh-client python3 tini
COPY --from=build ["/deps", "/deps/"]
ENV PYTHONPATH="/deps:/usr/src"
diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile
index 7254115..42c1ea9 100644
--- a/docker/frontend/Dockerfile
+++ b/docker/frontend/Dockerfile
@@ -6,7 +6,7 @@ FROM base AS builder
ARG CMARK_GFM_VERSION=0.29.0.gfm.6
ADD ["https://github.com/github/cmark-gfm/archive/refs/tags/$CMARK_GFM_VERSION.zip", "/"]
-RUN apk add --no-cache cmake g++ make python3 && \
+RUN apk add -q --no-cache cmake g++ make python3 && \
ln -sf /usr/bin/python3 /usr/bin/python
RUN unzip -- "$CMARK_GFM_VERSION.zip" && \
cd -- "cmark-gfm-$CMARK_GFM_VERSION" && \
@@ -17,12 +17,12 @@ RUN unzip -- "$CMARK_GFM_VERSION.zip" && \
# Install the latest Pygments (so that it would highlight CMakeLists.txt, etc.):
ARG PYGMENTS_VERSION=~=2.0
-RUN apk add --no-cache py3-pip && \
- pip3 install --no-cache-dir --target=/pygments "pygments$PYGMENTS_VERSION"
+RUN apk add -q --no-cache py3-pip && \
+ pip3 install -q --no-cache-dir --target=/pygments "pygments$PYGMENTS_VERSION"
FROM base
-RUN apk add --no-cache cgit dash fcgiwrap python3 spawn-fcgi tini && \
+RUN apk add -q --no-cache cgit dash 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