File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed
Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 1- #! /usr/ bin/env bash
1+ #! /bin/sh
22set -e
33
4- cd /var/www
5-
6- if [ ! -f " .env" ] && [ -f " .env.example" ]; then
7- cp .env.example .env
8- fi
9-
10- if [ -f " composer.json" ]; then
11- composer install --no-interaction
12- fi
13-
14- if [ -f " artisan" ]; then
15- php artisan key:generate --force || true
16- php artisan config:clear || true
17- php artisan route:clear || true
18- php artisan cache:clear || true
19- fi
4+
5+ mkdir -p /var/www/storage /var/www/bootstrap/cache
6+ chmod -R 775 /var/www/storage /var/www/bootstrap/cache || true
207
218exec " $@ "
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ FROM node:20-alpine
22
33WORKDIR /app
44
5- COPY package* .json ./
6- RUN npm install
5+ COPY package.json package-lock .json ./
6+ RUN npm ci
77
88COPY . .
99
1010EXPOSE 3000
11-
1211CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments