Moved ARG/ENV in Dockerfile to reuse first stages in docker build across Paheko versions
This commit is contained in:
parent
f0add9173c
commit
6a8a1231d8
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,6 @@ FROM php:8.1.12-apache-bullseye
|
||||||
LABEL Maintainer="Libretic"
|
LABEL Maintainer="Libretic"
|
||||||
LABEL Description="Unofficial Docker image for Paheko."
|
LABEL Description="Unofficial Docker image for Paheko."
|
||||||
|
|
||||||
ARG PAHEKO_VERSION
|
|
||||||
ENV PAHEKO_VERSION=$PAHEKO_VERSION
|
|
||||||
|
|
||||||
ENV APACHE_DOCUMENT_ROOT /var/www/paheko/www
|
ENV APACHE_DOCUMENT_ROOT /var/www/paheko/www
|
||||||
|
|
||||||
# Required PHP extensions and packages
|
# 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-configure gd --with-freetype --with-jpeg && \
|
||||||
docker-php-ext-install -j$(nproc) gd intl zip opcache
|
docker-php-ext-install -j$(nproc) gd intl zip opcache
|
||||||
|
|
||||||
|
ARG PAHEKO_VERSION
|
||||||
|
ENV PAHEKO_VERSION=$PAHEKO_VERSION
|
||||||
|
|
||||||
# Downloading and installing Paheko
|
# Downloading and installing Paheko
|
||||||
RUN cd /var/www && \
|
RUN cd /var/www && \
|
||||||
curl -L -O https://fossil.kd2.org/paheko/uv/paheko-$PAHEKO_VERSION.tar.gz && \
|
curl -L -O https://fossil.kd2.org/paheko/uv/paheko-$PAHEKO_VERSION.tar.gz && \
|
||||||
|
|
Loading…
Reference in a new issue