mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
fix permission deined issue
This commit is contained in:
+4
-5
@@ -3,11 +3,10 @@ RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev net
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
||||
RUN docker-php-ext-install pdo pdo_mysql zip gd
|
||||
RUN chmod -R 777 storage/
|
||||
WORKDIR /var/www
|
||||
ADD . /var/www
|
||||
RUN chown -R www-data:www-data /var/www
|
||||
RUN chmod 755 /var/www
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN chown -R www-data:www-data /app
|
||||
RUN chmod 755 /app/storage
|
||||
|
||||
RUN composer install
|
||||
RUN php artisan clear-compiled
|
||||
|
||||
+2
-2
@@ -13,9 +13,9 @@ services:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/var/www
|
||||
- .:/app
|
||||
env_file: .env
|
||||
working_dir: /var/www
|
||||
working_dir: /app
|
||||
depends_on:
|
||||
- database
|
||||
links:
|
||||
|
||||
Reference in New Issue
Block a user