From 60d497ff685a581cf63b4840af372d8613bd3f81 Mon Sep 17 00:00:00 2001 From: Simon Schuster Date: Tue, 29 Sep 2020 20:09:18 +0200 Subject: docker: Fix python binary Filebin unconditionally expects a 'python' command to be in path that is compatible with the installed pygments library. For alpine, this means a python3 binary. Therefore, we symlink /usr/bin/python3 to /usr/bin/python. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 5f75a2580..b0b3dfc05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM alpine:edge LABEL maintainer="sebastian@devunit.eu" RUN apk add --no-cache bash php7 py-pygments py-pip imagemagick php7-gd nodejs composer php7-pdo_mysql php7-exif php7-ctype php7-session git php7-fileinfo msmtp +RUN ln -sf /usr/bin/python3 /usr/bin/python ENV FILEBIN_HOME_DIR /var/lib/filebin ENV FILEBIN_DIR $FILEBIN_HOME_DIR/filebin -- cgit v1.2.3-24-g4f1b