From 7c337fb1e741c6fb3f9f17e1296e44d6cbf8b122 Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Thu, 20 May 2021 08:02:13 +0700 Subject: [PATCH] Add linking for python3 As in alpine /usr/bin/python owned by python2, workaround by linking /usr/bin/python3 to /usr/bin/python --- docker/alpine/Dockerfile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/alpine/Dockerfile.build b/docker/alpine/Dockerfile.build index 56a8f948..2733a4d4 100644 --- a/docker/alpine/Dockerfile.build +++ b/docker/alpine/Dockerfile.build @@ -2,7 +2,7 @@ #----------------------------------------- FROM node:14-alpine3.13 AS builder RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.13/community/ \ - python2 build-base sqlite-dev sqlite-libs vips-dev fftw-dev gcc g++ make libc6-compat + python3 build-base sqlite-dev sqlite-libs vips-dev fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python COPY pigallery2-release /app WORKDIR /app RUN npm install --unsafe-perm