Skip to content

Commit 5d78665

Browse files
committed
izbacen entrypoint.sh
1 parent 5700a97 commit 5d78665

File tree

2 files changed

+9
-40
lines changed

2 files changed

+9
-40
lines changed

laravel/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ RUN apk add --no-cache \
66
bash curl git zip unzip libzip-dev icu-dev oniguruma-dev mysql-client \
77
&& docker-php-ext-install pdo pdo_mysql mbstring zip intl opcache
88

9+
# composer (bez multi-stage)
910
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
1011

11-
# entrypoint
12-
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
13-
RUN chmod +x /usr/local/bin/entrypoint.sh
14-
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
12+
# Aplikacija
13+
COPY . .
14+
15+
# (opciono, ali korisno) napravi foldere da ne puca na cache/view putanjama
16+
RUN mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache
17+
18+
# (opciono) permisije - nemoj 777, dovoljno 775
19+
RUN chmod -R 775 storage bootstrap/cache || true
1520

1621
EXPOSE 9000
1722
CMD ["php-fpm"]

laravel/docker/entrypoint.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)