Answer the question
In order to leave comments, you need to log in
How to set composer proxy in docker container?
I am using php:7.4-fpm and composer:latest images, but I can't download packages with composer. For example, for apt, I configured proxy.conf and threw it into the image, but how to register a proxy in the composer?
Answer the question
In order to leave comments, you need to log in
Here is the correct image
FROM php:8-fpm
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question