Skip to content

Commit

Permalink
Mark Pygments version as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 authored May 28, 2024
1 parent bc15c4f commit 4a43057
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM php:8.1-fpm
# Version
ENV MEDIAWIKI_MAJOR_VERSION 1.39
ENV MEDIAWIKI_VERSION 1.39.7
ENV PYGMENTS_VERSION: 2.17.2

# System dependencies
RUN set -eux; \
Expand All @@ -26,12 +27,12 @@ RUN set -eux; \
; \
rm -rf /var/lib/apt/lists/*

# Directly download and install Pygment because bookworm is using an old version (2.14.1)
# Directly download and install Pygments because bookworm is using an old version (2.14.1)
# We need it for Extension:SyntaxHighlight
RUN set -eux; \
\
curl -o python3-pygments_2.17.2+dfsg-1_all.deb http://ftp.debian.org/debian/pool/main/p/pygments/python3-pygments_2.17.2+dfsg-1_all.deb \
dpkg -i python3-pygments_2.17.2+dfsg-1_all.deb
curl -fSL "https://ftp.debian.org/debian/pool/main/p/pygments/python3-pygments_${PYGMENTS_VERSION}+dfsg-1_all.deb" -o python3-pygments.deb \
dpkg -i python3-pygments.deb

# Install the PHP extensions we need
RUN set -eux; \
Expand Down

0 comments on commit 4a43057

Please sign in to comment.