1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Add linking for python3

As in alpine /usr/bin/python owned by python2, workaround by linking /usr/bin/python3 to /usr/bin/python
This commit is contained in:
Dedy Martadinata S 2021-05-20 08:02:13 +07:00 committed by GitHub
parent 996b77eb7b
commit 7c337fb1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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