Fix Docker Image
See original GitHub issueTodo
- use the standalone installer inside the image
- use Debian as the image base
Original issue
Trying to build with docker-compose up
and it failed and returned this:
Step 1/6 : FROM alpine:latest ---> e7d92cdc71fe Step 2/6 : WORKDIR /app ---> Using cache ---> 263a4ff5837a Step 3/6 : COPY . /app ---> Using cache ---> 07ea790a3d82 Step 4/6 : RUN apk add --update --no-cache python2 py2-pip py2-gevent py2-flask py2-requests py2-pygments py2-redis py2-cffi py2-icu bash vim gawk sed && apk add --no-cache --virtual build-deps python2-dev build-base git && pip install -r requirements.txt && sh share/scripts/get-sheets.sh && apk del build-deps ---> Running in 5b4115fbf344 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz ERROR: unsatisfiable constraints: py2-cffi (missing): required by: world[py2-cffi] py2-flask (missing): required by: world[py2-flask] py2-gevent (missing): required by: world[py2-gevent] py2-icu (missing): required by: world[py2-icu] py2-pygments (missing): required by: world[py2-pygments] py2-redis (missing): required by: world[py2-redis] py2-requests (missing): required by: world[py2-requests] ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add --update --no-cache python2 py2-pip py2-gevent py2-flask py2-requests py2-pygments py2-redis py2-cffi py2-icu bash vim gawk sed && apk add --no-cache --virtual build-deps python2-dev build-base git && pip install -r requirements.txt && sh share/scripts/get-sheets.sh && apk del build-deps' returned a non-zero code: 7
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
@abitrolly Thank you! I can verify it works now.
@DuploMinh the
docker-compose
scenario is fixed. Although it didn’t migrate off Alpine, it should now work by default. Could you check that it works for you?