mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Add a 'archive_url' build argument (#123)
* Use archive_url ARG to modify download URL * Make ARG quoting consistent
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
FROM php:8.0-fpm
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version='3.28.12+220524'
|
||||
ARG sha256_checksum='18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def'
|
||||
ARG version="3.28.12+220524"
|
||||
ARG sha256_checksum="18437545fc0b86900663d494508284a1a5340e6db4fc9eb7a598fb8304dd8def"
|
||||
ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz"
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
@@ -50,9 +51,9 @@ RUN set -ex; \
|
||||
|
||||
ENV LIMESURVEY_VERSION=$version
|
||||
|
||||
# Download, unzip and chmod LimeSurvey from official GitHub repository
|
||||
# Download, unzip and chmod LimeSurvey from GitHub (defaults to the official LimeSurvey/LimeSurvey repository)
|
||||
RUN set -ex; \
|
||||
curl -sSL "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" --output /tmp/limesurvey.tar.gz && \
|
||||
curl -sSL "${archive_url}" --output /tmp/limesurvey.tar.gz && \
|
||||
echo "${sha256_checksum} /tmp/limesurvey.tar.gz" | sha256sum -c - && \
|
||||
\
|
||||
tar xzvf "/tmp/limesurvey.tar.gz" --strip-components=1 -C /var/www/html/ && \
|
||||
|
||||
Reference in New Issue
Block a user