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: 10 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 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T22:31:27.000Z (about 1 year ago)
- Last Synced: 2025-03-23T22:12:44.644Z (10 months ago)
- Topics: docker, php, php7, php73, php74, php8, php80, php81, php82, swoole
- Language: Dockerfile
- Homepage:
- Size: 92.8 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- 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 /app
COPY auth.json .
COPY composer.json .
COPY composer.lock .
RUN composer install --no-dev --no-scripts --ignore-platform-reqs
COPY . .
RUN rm auth.json && composer dump --classmap-authoritative
FROM --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.ini
RUN php artisan view:cache
RUN php artisan optimize
EXPOSE 8000
CMD ["php", "artisan", "octane:frankenphp", "--host=0.0.0.0", "--port=8000"]
```