mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
feat: Move ARG instructions right before where they are used (#124)
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
FROM php:8.0-apache
|
||||
LABEL maintainer="markus@martialblog.de"
|
||||
ARG version="3.28.13+220531"
|
||||
ARG sha256_checksum="57273ebd94c54e1501496451137f2d1cf205551c7dd0eebcb42b6aebeec6e1a7"
|
||||
ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz"
|
||||
ARG USER=root
|
||||
ARG LISTEN_PORT=80
|
||||
|
||||
# Install OS dependencies
|
||||
RUN set -ex; \
|
||||
@@ -51,8 +46,6 @@ RUN set -ex; \
|
||||
tidy \
|
||||
zip
|
||||
|
||||
ENV LIMESURVEY_VERSION=$version
|
||||
|
||||
# Apache configuration
|
||||
RUN a2enmod headers rewrite remoteip; \
|
||||
{\
|
||||
@@ -66,6 +59,13 @@ RUN a2enmod headers rewrite remoteip; \
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
ARG version="3.28.13+220531"
|
||||
ARG sha256_checksum="57273ebd94c54e1501496451137f2d1cf205551c7dd0eebcb42b6aebeec6e1a7"
|
||||
ARG archive_url="https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz"
|
||||
ARG USER=root
|
||||
ARG LISTEN_PORT=80
|
||||
ENV LIMESURVEY_VERSION=$version
|
||||
|
||||
# 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 && \
|
||||
|
||||
Reference in New Issue
Block a user