Export users 500k+ lines, seed, supervisord setup
This commit is contained in:
@@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libzip-dev \
|
||||
unzip \
|
||||
git \
|
||||
supervisor \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Configure and install PHP extensions
|
||||
@@ -55,7 +56,14 @@ USER www-data
|
||||
# 6. Download and unpack the Laravel installer directly into www-data's profile folder
|
||||
RUN composer global require laravel/installer --no-interaction
|
||||
|
||||
# 7. Switch back to root user
|
||||
USER root
|
||||
|
||||
# Supervisor
|
||||
RUN mkdir -p /var/log/supervisor
|
||||
COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# Expose PHP-FPM default communication port
|
||||
EXPOSE 9000
|
||||
|
||||
CMD ["php-fpm"]
|
||||
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
Reference in New Issue
Block a user