summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schuster <git@rationality.eu>2020-09-29 20:09:18 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-10-07 11:09:24 +0200
commit60d497ff685a581cf63b4840af372d8613bd3f81 (patch)
treec90e768cac2d89352cc8a90b741c86d509b63af1
parentab41e7717fe0df20a4ca516b918b64bd32753361 (diff)
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.
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
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