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/
44COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf
55COPY .bashrc /root/
66
7+ # Copy the entrypoint script
8+ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
9+ RUN chmod +x /usr/local/bin/entrypoint.sh
10+
711# mix
812RUN apt-get update \
913 && 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
5357
5458EXPOSE 5173
5559WORKDIR /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