[PR #1698] [MERGED] Fixing composer install inside docker app container #5864

Closed
opened 2026-02-05 10:18:59 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/1698
Author: @ammardev
Created: 10/3/2019
Status: Merged
Merged: 10/5/2019
Merged by: @ssddanbrown

Base: masterHead: master


📝 Commits (1)

  • 3f025f6 Add git to the apt-get install packages.

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 dev/docker/Dockerfile (+1 -1)

📄 Description

Describe the bug
Can not run composer install inside app docker container. The error appears because Composer can not find git.

Steps To Reproduce
Steps to reproduce the behavior:
The same steps explained in the README file.

  1. Clone master branch.
  2. Run the command: docker-compose run app composer install.
  3. The error appears as the image in screenshots.

Expected behavior
Installing Packages inside Docker container.

Screenshots
Tested on my local machine and on a Digitalocean droplet.
image

My Configuration:

  • Exact BookStack Version: The version of master branch.
  • PHP Version: 7.3
  • Hosting Method (Nginx/Apache/Docker): Docker.

This pull request adding git to the docker image. So Composer can install packages without the git error.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/1698 **Author:** [@ammardev](https://github.com/ammardev) **Created:** 10/3/2019 **Status:** ✅ Merged **Merged:** 10/5/2019 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`3f025f6`](https://github.com/BookStackApp/BookStack/commit/3f025f69cff807731ece18d5db25d178784c319c) Add git to the apt-get install packages. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `dev/docker/Dockerfile` (+1 -1) </details> ### 📄 Description **Describe the bug** Can not run `composer install` inside `app` docker container. The error appears because `Composer` can not find `git`. **Steps To Reproduce** Steps to reproduce the behavior: The same steps explained in the `README` file. 1. Clone master branch. 2. Run the command: `docker-compose run app composer install`. 3. The error appears as the image in screenshots. **Expected behavior** Installing Packages inside Docker container. **Screenshots** Tested on my local machine and on a Digitalocean droplet. ![image](https://user-images.githubusercontent.com/16087389/66148068-c9c14180-e618-11e9-8597-b1307edf817b.png) **My Configuration:** - Exact BookStack Version: The version of `master` branch. - PHP Version: 7.3 - Hosting Method (Nginx/Apache/Docker): Docker. This pull request adding git to the docker image. So Composer can install packages without the `git` error. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:18:59 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5864