mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Docker > Dockerfile > add "WORKDIR" (instead of "working_dir" in docker-compose.yml)
This commit is contained in:
@@ -4,7 +4,6 @@ services:
|
||||
php-cli:
|
||||
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
working_dir: /project
|
||||
entrypoint: php
|
||||
command: -S 0.0.0.0:9999
|
||||
build:
|
||||
@@ -16,7 +15,6 @@ services:
|
||||
composer:
|
||||
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-composer
|
||||
working_dir: /project
|
||||
entrypoint: composer
|
||||
volumes:
|
||||
- .:/project
|
||||
|
||||
@@ -127,3 +127,5 @@ RUN sed -i 's/^# export/export/g; \
|
||||
# Use project-related binaries globally
|
||||
#
|
||||
ENV PATH="/project/vendor/bin:${PATH}"
|
||||
|
||||
WORKDIR /project
|
||||
|
||||
Reference in New Issue
Block a user