abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
766 stars 314 forks source link

How do I run composer with caddy-docker php? #258

Open kaihendry opened 2 years ago

kaihendry commented 2 years ago
FROM abiosoft/caddy:php-no-stats
RUN apk add --no-cache bash
WORKDIR /srv
RUN composer require aws/aws-sdk-php
RUN touch /srv/testing123
ADD Dockerfile /srv/just-testing
ENTRYPOINT ["bash"]
(ins)[hendry@t14s docker-sanity-test]$ make start
docker run --rm -it --name sanitytest $(whoami)/sanitytest
bash-5.0# ls /srv
index.php     just-testing

For some reason I don't understand /srv files that composer creates are not set in the above case.