souramoo / commentoplusplus

Commento with out of the box patches and updates to add useful features and fixes. Also with one-click deploy to Heroku so you can get up and running fast.
MIT License
391 stars 63 forks source link

Cannot build frontend #109

Closed AlfredoRamos closed 2 years ago

AlfredoRamos commented 2 years ago

Hi :wave:

I tried to install a new instance on a new site, however I noticed that it failed to build the frontend.

Step 11/41 : FROM node:${NODE_VERSION}-alpine AS frontend-build
16-alpine: Pulling from library/node
2408cc74d12b: Already exists
5b80453a567d: Pull complete
3420de6432e1: Pull complete
65b549a28248: Pull complete
Digest: sha256:c785e617c8d7015190c0d41af52cc69be8a16e3d9eb7cb21f0bb58bcfca14d6b
Status: Downloaded newer image for node:16-alpine
 ---> 97c7a05048e1
Step 12/41 : RUN apk add --no-cache bash make python2 g++
 ---> Running in b4f24f1dcb47
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  python2 (no such package):                                                                                                
    required by: world[python2]
ERROR: Service 'commento' failed to build: The command '/bin/sh -c apk add --no-cache bash make python2 g++' returned a non-zero code: 1

As you can see, the Docker image node:16-alpine currently points to Alpine 3.16 where the package python2 no longer exists ^1, so that steps fails.

Steps to reproduce:

  1. Use a Docker Compose setup
  2. Run docker compose up -d