Skip to content

Commit

Permalink
Docker : using php-cli instead of FPM
Browse files Browse the repository at this point in the history
  • Loading branch information
rayanlevert committed Aug 17, 2024
1 parent b4dcea8 commit 862012b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM composer:2.6.5 AS composer
FROM php:8.3-fpm
FROM composer:2.7.7 AS composer
FROM php:8.3-cli

LABEL maintainer="Rayan Levert <[email protected]>"

Expand All @@ -21,4 +21,4 @@ VOLUME ["/app"]
# Composer
COPY --from=composer /usr/bin/composer /usr/local/bin/composer

CMD ["php-fpm"]
CMD ["php"]
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '2'

services:
app:
dotenv:
build: .
restart: 'no'
tty: true
stdin_open: true
working_dir: /app
volumes:
- .:/app

0 comments on commit 862012b

Please sign in to comment.