Je suis en train d'essayer d'apprendre Docker, et j'ai eu des problèmes. Mon fichier docker est le suivantDockerfile essayant de 'apk add composer' échoue?
# Base image of a nginx box
FROM richarvey/nginx-php-fpm:latest
ARG VERSION=0.0.0
ENV APP=jewel
ENV WEBROOT=/var/www/html/JEWEL_WEB_ROOT/
WORKDIR /var/www/html
COPY ./ ./
# Install composer libs
RUN echo "ipv6" >> /etc/modules
#RUN ["apk","update"]
RUN ["apk","add","composer", "--no-cache"]
RUN ["composer","install"]
ENV PORT=80
EXPOSE 80
Lorsque le processus de construction arrive à l'ajouter apk, je reçois le texte suivant:
Step 8/11 : RUN apk add composer --no-cache
---> Running in ffa506b1a07f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
composer-1.5.2-r0:
masked in: @testing
satisfies: world[composer]
ERROR: Service 'web' failed to build: The command 'apk add composer --no-cache' returned a non-zero code: 1
J'ai vérifié les listes de paquets (sur pkgs.alpinelinux.org) , et il y a un paquet qui semble répondre aux critères, qu'il semble trouver?
Je suis confus pourquoi il semble trouver le paquet, mais ne sera pas l'installer pour moi.
ahhh ok, merci! :) –