Skip to content

Commit 21a269d

Browse files
committed
sitne popravke za deploy
1 parent 8ccd654 commit 21a269d

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

laravel/docker/entrypoint.sh

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh
22
set -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

218
exec "$@"

reactfront/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ FROM node:20-alpine
22

33
WORKDIR /app
44

5-
COPY package*.json ./
6-
RUN npm install
5+
COPY package.json package-lock.json ./
6+
RUN npm ci
77

88
COPY . .
99

1010
EXPOSE 3000
11-
1211
CMD ["npm", "start"]

0 commit comments

Comments
 (0)