fix docker compose; copy project to docker
Build and Deploy Docker / build (push) Successful in 1m21s
Build and Deploy Docker / deploy (push) Successful in 30s

This commit is contained in:
2026-07-14 22:43:42 +02:00
parent a78f715d04
commit 22866ed675
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
services:
php:
build:
context: ./docker/php
context: .
dockerfile: ./services/php/Dockerfile
container_name: portfolio_php
working_dir: /app
volumes:
- ./project:/app
# volumes:
# - ./project:/app
ports:
- "8000:8000"
environment:
+2 -2
View File
@@ -19,9 +19,9 @@ RUN docker-php-ext-install -j"$(nproc)" \
# Composer (z oficjalnego obrazu)
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY project/ /app
WORKDIR /app
RUN composer install --ignore-platform-reqs --no-scripts
EXPOSE 8000
# Wbudowany serwer PHP serwujący katalog public/