-MAILTO=sysadmin@cubedesigners.com
-SHELL=/bin/sh
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-
* * * * * runuser -l pmi-dev -c '/usr/bin/php /application/artisan schedule:run' > /proc/1/fd/1 2>/proc/1/fd/2
-20 5 * * * /application/scripts/restartworkers > /proc/1/fd/1 2>/proc/1/fd/2
# Add Nodejs Repository
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
-RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
+RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x focal main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update
start-stop-daemon --start -b -x /usr/sbin/rsyslogd -- -n
# SSH Server
-ssh-keygen -A
+cd /etc/ssh/ && ssh-keygen -A
chmod 755 /etc/ssh/*.d
chmod 600 /etc/ssh/*_key
chmod 750 /application
#!/bin/sh
cd /docker/pmi-dev
-chmod -R 777 ./esdata
docker network create pmi-dev
+dos2unix ./images/php-fpm/startup
+
chmod -R 777 ./esdata
chown -R 999:999 ./database/data
chown 0:0 ./config/cron/crontab
#!/bin/sh
cd /docker/pmi
+dos2unix ./images/php-fpm/startup
chmod -R 777 ./esdata
chown -R 999:999 ./database/data
chown 0:0 ./config/cron/crontab