Skip to content

Commit

Permalink
Composer added (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryotafunaki authored Aug 21, 2024
1 parent 29e66dd commit 930f015
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2024 RFull Development
# This source code is managed under the MIT license. See LICENSE in the project root.
FROM php:lastest
FROM php:latest

# Install dependencies
RUN apt update && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository is a Dev Container for PHP.
| Base image and tags | php:*tag* |
| Target platform | linux/x64, linux/arm64 |
| Container registry's URL | https://hub.docker.com/r/ryotafunaki/devcontainer-php/ |
| Installed packages | .NET SDK 8.0, Kiota |
| Installed packages | .NET SDK 8.0, Kiota, Composer |

## How to use

Expand Down
9 changes: 9 additions & 0 deletions root_shells/shells.d/install_composer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# Copyright (c) 2024 RFull Development
# This source code is managed under the MIT license. See LICENSE in the project root.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
exit 0

0 comments on commit 930f015

Please sign in to comment.