Skip to content

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

Open
@kaihendry

Description

@kaihendry
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions