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: