You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM php:8.1-cli
RUN apt-get update
RUN apt-get install -y git libzip-dev zip
RUN docker-php-ext-install zip
# Get latest ComposerCOPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . /src
WORKDIR /src
# install the dependenciesRUN composer install -o --prefer-dist && chmod a+x expose
ENV port=8080
ENV domain=localhost
ENV username=username
ENV password=password
ENV exposeConfigPath=/src/config/expose.php
COPY docker-entrypoint.sh /usr/bin/
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
With this command:
docker compose run expose share http://localhost
And I get this error
=> [stage-0 2/10] RUN apt-get update 3.7s
=> [stage-0 3/10] RUN apt-get install -y git libzip-dev zip 5.4s
=> [stage-0 4/10] RUN docker-php-ext-install zip 7.2s
=> [stage-0 5/10] COPY --from=composer:latest /usr/bin/composer /usr/bin/composer 0.0s
=> [stage-0 6/10] COPY . /src 0.1s
=> [stage-0 7/10] WORKDIR /src 0.0s
=> ERROR [stage-0 8/10] RUN composer install -o --prefer-dist && chmod a+x expose 0.4s
------
> [stage-0 8/10] RUN composer install -o --prefer-dist && chmod a+x expose:
#0 0.361 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.#0 0.361 Do not run Composer as root/super user! See https://getcomposer.org/root for details#0 0.363 Composer could not find a composer.json file in /src#0 0.363 To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
------
failed to solve: executor failed running [/bin/sh -c composer install -o --prefer-dist && chmod a+x expose]: exit code: 1
I build this image
With this command:
And I get this error
OS
Docker Compose version v2.6.0
Docke version
The text was updated successfully, but these errors were encountered: