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:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -5,8 +5,8 @@ Homestead.json
|
|||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
.env
|
.env
|
||||||
composer.lock
|
composer.lock
|
||||||
/Dockerfile
|
Dockerfile
|
||||||
/docker-compose.yml
|
docker-compose.yml
|
||||||
|
|
||||||
# Büyük SQL dosyaları
|
# Büyük SQL dosyaları
|
||||||
*.sql
|
*.sql
|
||||||
|
|||||||
@@ -45,24 +45,19 @@ COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
|||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# Laravel/Lumen gerekli klasörleri
|
|
||||||
RUN mkdir -p \
|
RUN mkdir -p \
|
||||||
/var/www/html/storage/logs \
|
/var/www/html/storage/logs \
|
||||||
/var/www/html/storage/framework/cache \
|
/var/www/html/storage/framework/cache \
|
||||||
|
/var/www/html/storage/framework/cache/data \
|
||||||
/var/www/html/storage/framework/sessions \
|
/var/www/html/storage/framework/sessions \
|
||||||
/var/www/html/storage/framework/views \
|
/var/www/html/storage/framework/views \
|
||||||
/var/www/html/bootstrap/cache \
|
/var/www/html/bootstrap/cache \
|
||||||
/home/uploads \
|
/home/uploads \
|
||||||
&& chown -R www-data:www-data \
|
&& chmod -R 777 \
|
||||||
/var/www/html/storage \
|
|
||||||
/var/www/html/bootstrap/cache \
|
|
||||||
/home/uploads \
|
|
||||||
&& chmod -R 775 \
|
|
||||||
/var/www/html/storage \
|
/var/www/html/storage \
|
||||||
/var/www/html/bootstrap/cache \
|
/var/www/html/bootstrap/cache \
|
||||||
/home/uploads
|
/home/uploads
|
||||||
|
|
||||||
# Runtime permission düzeltme scripti
|
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user