@@ -12,4 +12,9 @@ COPY composer.json /app/composer.json
|
||||
RUN composer install --no-dev --no-interaction 2>/dev/null || true
|
||||
|
||||
COPY . /app
|
||||
RUN composer dump-autoload --no-dev --no-interaction 2>/dev/null || true
|
||||
RUN composer dump-autoload --no-dev --no-interaction 2>/dev/null || true
|
||||
|
||||
COPY docker/entrypoint-api.sh /usr/local/bin/entrypoint-api.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint-api.sh
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint-api.sh"]
|
||||
CMD ["php-fpm"]
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /app/data
|
||||
chown -R www-data:www-data /app/data 2>/dev/null || chmod -R 777 /app/data 2>/dev/null || true
|
||||
exec docker-php-entrypoint "$@"
|
||||
Reference in New Issue
Block a user