File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ COPY php.ini /usr/local/etc/php/
4
4
COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf
5
5
COPY .bashrc /root/
6
6
7
+ # Copy the entrypoint script
8
+ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
9
+ RUN chmod +x /usr/local/bin/entrypoint.sh
10
+
7
11
# mix
8
12
RUN apt-get update \
9
13
&& apt-get install -y build-essential zlib1g-dev default-mysql-client curl gnupg procps vim git unzip libzip-dev libpq-dev \
@@ -53,3 +57,7 @@ RUN git clone https://github.com/seebi/dircolors-solarized
53
57
54
58
EXPOSE 5173
55
59
WORKDIR /var/www
60
+
61
+ # entrypoint
62
+ ENTRYPOINT ["entrypoint.sh" ]
63
+ CMD ["php-fpm" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ # Set permissions for Laravel directories
5
+ chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
6
+ chmod -R 775 /var/www/storage /var/www/bootstrap/cache
7
+
8
+ # permissions for PHPMyAdmin
9
+ mkdir -p /sessions
10
+
11
+ chmod 777 /sessions
12
+
13
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments