Skip to content

Commit

Permalink
Add composer installer, closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Jan 9, 2025
1 parent f148a07 commit f78df17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ USER root
RUN set -ex; \
\
mv /usr/local/bin/actions.mk /usr/local/bin/php.mk; \
# Change overridden target name to avoid warnings.
sed -i 's/git-checkout:/php-git-checkout:/' /usr/local/bin/php.mk; \
\
sed -i '$ s#$#, /usr/local/bin/fix_laravel_permissions#' /etc/sudoers.d/wodby

USER wodby

RUN composer global require laravel/installer

COPY templates /etc/gotpl/
COPY bin /usr/local/bin
COPY init /docker-entrypoint-init.d/
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# PHP (FPM) for Laravel Docker Container Image
# PHP (FPM) for Laravel Docker Container Image

[![Build Status](https://github.com/wodby/laravel-php/workflows/Build%20docker%20image/badge.svg)](https://github.com/wodby/laravel-php/actions)
[![Docker Pulls](https://img.shields.io/docker/pulls/wodby/laravel-php.svg)](https://hub.docker.com/r/wodby/laravel-php)
[![Docker Stars](https://img.shields.io/docker/stars/wodby/laravel-php.svg)](https://hub.docker.com/r/wodby/laravel-php)

## Docker Images

❗For better reliability we release images with stability tags (`wodby/laravel-php:8-X.X.X`) which correspond to [git tags](https://github.com/wodby/laravel-php/releases). We strongly recommend using images only with stability tags.
❗For better reliability we release images with stability tags (
`wodby/laravel-php:8-X.X.X`) which correspond to [git tags](https://github.com/wodby/laravel-php/releases). We strongly recommend using images only with stability tags.

Overview:

- All images based on Alpine Linux
- Base image: [wodby/php](https://github.com/wodby/php)
- [GitHub actions builds](https://github.com/wodby/laravel-php/actions)
- [GitHub actions builds](https://github.com/wodby/laravel-php/actions)
- [Docker Hub](https://hub.docker.com/r/wodby/laravel-php)

Supported tags and respective `Dockerfile` links:
Expand Down Expand Up @@ -40,9 +41,14 @@ See `templates/.env.tmpl`

See [wodby/php](https://github.com/wodby/php) for all variables

## Tools

This image comes with [Laravel installer](https://laravel.com/docs/11.x/installation#installing-php) latest version installed globally via Composer.

## Orchestration Actions

Usage:

```
make COMMAND [params ...]
Expand Down

0 comments on commit f78df17

Please sign in to comment.