Fix linting issues in alpine Dockerfiles

This commit is contained in:
Markus Opolka
2023-06-09 12:19:04 +02:00
parent 0c28e5bbf9
commit 6d3bc51ebc
3 changed files with 8 additions and 11 deletions

View File

@@ -5,7 +5,6 @@ LABEL maintainer="markus@martialblog.de"
RUN apk add --no-cache netcat-openbsd bash
# Install PHP Plugins
# hadolint ignore=DL3019
RUN set -ex; \
apk add --no-cache --virtual .build-deps \
freetype-dev \
@@ -43,8 +42,8 @@ RUN set -ex; \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --no-network --virtual .limesurvey-phpext-rundeps $runDeps; \
apk del --no-network .build-deps
apk add --no-cache --no-network --virtual .limesurvey-phpext-rundeps "${runDeps}"; \
apk del --no-cache --no-network .build-deps
ARG version="5.6.21+230518"
ARG sha256_checksum="47ae13c225b7986e65913e3d2206fd53a7acf511166d2d1a73b5257830eacfef"
@@ -52,7 +51,7 @@ ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar
ARG USER=www-data
ENV LIMESURVEY_VERSION=$version
# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository)
# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository)
RUN set -ex; \
curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \
echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \