Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrunotome/php
Docker images for php
https://github.com/ibrunotome/php
docker php php7 php73 php74 php8 php80 php81 php82 swoole
Last synced: 3 months ago
JSON representation
Docker images for php
- Host: GitHub
- URL: https://github.com/ibrunotome/php
- Owner: ibrunotome
- Created: 2019-07-06T13:12:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T20:53:11.000Z (8 months ago)
- Last Synced: 2024-09-29T19:42:53.962Z (3 months ago)
- Topics: docker, php, php7, php73, php74, php8, php80, php81, php82, swoole
- Language: Dockerfile
- Homepage:
- Size: 92.8 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Disclaimer
This is for my personal use, dependencies can come and go at any time 🤷♂️
```Dockerfile
FROM --platform=linux/amd64 composer:2.6.6 AS build
WORKDIR /appCOPY auth.json .
COPY composer.json .
COPY composer.lock .
RUN composer install --no-dev --no-scripts --ignore-platform-reqsCOPY . .
RUN rm auth.json && composer dump --classmap-authoritativeFROM --platform=linux/amd64 ibrunotome/php:8.3.4-frankenphp
ENV APP_ENV=production
WORKDIR /app
COPY --from=build /app /app
COPY --from=build /app/php.ini /usr/local/etc/php/conf.d/user.iniRUN php artisan view:cache
RUN php artisan optimizeEXPOSE 8000
CMD ["php", "artisan", "octane:frankenphp", "--host=0.0.0.0", "--port=8000"]
```