---
title: "Discussion on \"Install Composer in PHP Base Image Docker Container\" | Hashnode"
description: "Discussion on \"Install Composer in PHP Base Image Docker Container\". # Install Composer\nRUN php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" \\\n&& php composer-setup.php --install-dir=/usr/local/bi"
url: "https://hashnode.com/posts/install-composer-in-php-base-image-docker-container/64e4c4301919845491a6117f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Install Composer in PHP Base Image Docker Container](https://sathir.hashnode.dev/install-composer-in-php-base-image-docker-container?utm_source=hashnode&utm_medium=feed)

\# Install Composer RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \\ && php composer-setup.php --install-dir=/usr/local/bi

Aug 22, 2023 · 2 min read · sathir.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#composer](https://hashnode.com/tag/composer)
-   [#composer-setup](https://hashnode.com/tag/composer-setup)
-   [#php](https://hashnode.com/tag/php)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)

## Written by

[Sathir M. Mansoor](https://hashnode.com/@sathir)

@sathir

  
[View profile](https://hashnode.com/@sathir)

Code Chronicles: Navigating the Digital Realm

Software Engineer specialized in Development &amp; Deployment

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
