Moved ARG/ENV in Dockerfile to reuse first stages in docker build across Paheko versions

This commit is contained in:
Navas 2023-09-08 17:52:14 +02:00
parent f0add9173c
commit 6a8a1231d8
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,6 @@ FROM php:8.1.12-apache-bullseye
LABEL Maintainer="Libretic"
LABEL Description="Unofficial Docker image for Paheko."
ARG PAHEKO_VERSION
ENV PAHEKO_VERSION=$PAHEKO_VERSION
ENV APACHE_DOCUMENT_ROOT /var/www/paheko/www
# Required PHP extensions and packages
@ -13,6 +10,9 @@ RUN apt-get update && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install -j$(nproc) gd intl zip opcache
ARG PAHEKO_VERSION
ENV PAHEKO_VERSION=$PAHEKO_VERSION
# Downloading and installing Paheko
RUN cd /var/www && \
curl -L -O https://fossil.kd2.org/paheko/uv/paheko-$PAHEKO_VERSION.tar.gz && \