Skip to content

Commit 0a1d7b0

Browse files
committed
デプロイ用のスクリプト修正 #13
1 parent 0427816 commit 0a1d7b0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ ENV COMPOSER_ALLOW_SUPERUSER 1
2121
RUN apk update && apk add --no-cache bash curl
2222

2323
# Node.jsのインストール (バイナリ版)
24-
RUN curl -fsSL https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz -o /tmp/node-v16.20.2-linux-x64.tar.xz && \
25-
tar -xJf /tmp/node-v16.20.2-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
26-
rm /tmp/node-v16.20.2-linux-x64.tar.xz
24+
RUN curl -fsSL https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz -o /tmp/node-v22.14.0-linux-x64.tar.xz && \
25+
tar -xJf /tmp/node-v22.14.0-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
26+
rm /tmp/node-v22.14.0-linux-x64.tar.xz
2727

2828
# Node.jsのバイナリがパスに含まれていることを確認
2929
ENV PATH=/usr/local/bin:$PATH

scripts/00-laravel-deploy.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,4 @@ php artisan db:seed --class=UserSeeder --force
2828
# npm依存関係インストール
2929
echo "Installing npm dependencies..."
3030
cd /var/www/html
31-
npm install
32-
33-
# jQueryのビルド
34-
echo "Running npm build..."
35-
npm run production
31+
npm i

0 commit comments

Comments
 (0)