Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: Run composer install in ENTRYPOINT #4

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

philbates35
Copy link
Owner

@philbates35 philbates35 commented Jan 18, 2024

I realised going through the docs the getting started steps on a fresh project didn't work, there were a couple of issues:

  1. The .env wasn't being created
  2. The composer:latest used to do the initial composer install uses PHP8.2 but the project requires PHP8.3 so it fails. It makes much more sense to do the composer install as part of the initial docker-compose up meaning one less step for the developer.

I realised going through the docs the getting started steps on
a fresh project didn't work, there were a couple of issues:

1. The .env wasn't being created
2. The composer:latest used to do the initial "composer install"
   uses PHP8.2 but the project requires PHP8.3 so it fails. It
   makes much more sense to do the "composer install" as part
   of the initial "docker-compose up" meaning one less step for
   the developer.
@philbates35 philbates35 merged commit 5a4d83e into main Jan 18, 2024
8 checks passed
@philbates35 philbates35 deleted the update-dockerfile branch January 18, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant