update Dockerfile and .gitignore for improved permissions and organization
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
@@ -45,24 +45,19 @@ COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Laravel/Lumen gerekli klasörleri
|
||||
RUN mkdir -p \
|
||||
/var/www/html/storage/logs \
|
||||
/var/www/html/storage/framework/cache \
|
||||
/var/www/html/storage/framework/cache/data \
|
||||
/var/www/html/storage/framework/sessions \
|
||||
/var/www/html/storage/framework/views \
|
||||
/var/www/html/bootstrap/cache \
|
||||
/home/uploads \
|
||||
&& chown -R www-data:www-data \
|
||||
/var/www/html/storage \
|
||||
/var/www/html/bootstrap/cache \
|
||||
/home/uploads \
|
||||
&& chmod -R 775 \
|
||||
&& chmod -R 777 \
|
||||
/var/www/html/storage \
|
||||
/var/www/html/bootstrap/cache \
|
||||
/home/uploads
|
||||
|
||||
# Runtime permission düzeltme scripti
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user