From 7e7bde05b8b50e98285cd233a6c1a94684bf8e5b Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 9 Apr 2022 22:28:21 +0900 Subject: [PATCH] =?UTF-8?q?app=EC=97=90=EC=84=9C=20php,nodejs=20package?= =?UTF-8?q?=EB=A5=BC=20=EC=82=AC=EC=A0=84=20=EC=A4=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/app/entrypoint.sh | 6 ++++++ hidche/docker-compose.yml | 5 +++-- hidche/example.docker-compose.override.yml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hidche/app/entrypoint.sh b/hidche/app/entrypoint.sh index aa2445f..8360a32 100755 --- a/hidche/app/entrypoint.sh +++ b/hidche/app/entrypoint.sh @@ -15,6 +15,12 @@ if [ ! -f "$samRoot/index.php" ]; then chown -R www-data:www-data $wwwRoot gosu www-data git clone $gameGitPath $samRoot gosu www-data git checkout $gameGitBranch + + pushd $samRoot + gosu www-data npm ci + gosu www-data npm run build -- --env target=gateway + gosu www-data php composer.phar install + popd fi if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then diff --git a/hidche/docker-compose.yml b/hidche/docker-compose.yml index f6a17b5..3d3e12d 100644 --- a/hidche/docker-compose.yml +++ b/hidche/docker-compose.yml @@ -13,8 +13,9 @@ services: web: build: ./web restart: always - ports: - - 8080:80 + #ports: + # 기본 포트로 사용할 곳 지정. 아래와 같이 사용하면 8080 + # - 8080:80 volumes: - hidche:/var/www/html:ro - board:/var/www/board:ro diff --git a/hidche/example.docker-compose.override.yml b/hidche/example.docker-compose.override.yml index 5257ac6..2159905 100644 --- a/hidche/example.docker-compose.override.yml +++ b/hidche/example.docker-compose.override.yml @@ -25,7 +25,7 @@ services: target: /var/www/html #For DEV. Set app path as local directory - type: bind - source: ~/dev_sam/bbs + source: ~/dev_sam/board target: /var/www/board app: