Compare commits
	
		
			2 Commits
		
	
	
		
			48f4fc60ae
			...
			11eff2d940
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 11eff2d940 | |||
| 0c2679cab5 | 
| @@ -5,10 +5,13 @@ COPY crontab /etc/cron.d/crontab | |||||||
| COPY refresh.php /var/www/html/ | COPY refresh.php /var/www/html/ | ||||||
| COPY libnotices.py /usr/local/bin/ | COPY libnotices.py /usr/local/bin/ | ||||||
| COPY requirements.txt / | COPY requirements.txt / | ||||||
|  | COPY init.sh / | ||||||
|  | RUN chmod +x /init.sh | ||||||
| RUN pip3 install -r /requirements.txt | RUN pip3 install -r /requirements.txt | ||||||
| RUN mkdir /var/www/.aws | RUN mkdir /var/www/.aws | ||||||
| RUN chmod +x /usr/local/bin/libnotices.py | RUN chmod +x /usr/local/bin/libnotices.py | ||||||
| RUN chown www-data:www-data /var/www -R | RUN chown www-data:www-data /var/www -R | ||||||
| RUN apt clean | RUN apt clean | ||||||
| EXPOSE 80 | EXPOSE 80 | ||||||
| CMD (cron -l 8 & ) && su - www-data -s /usr/local/bin/libnotices.py & apache2ctl -D FOREGROUND] | CMD ["/init.sh"] | ||||||
|  | #(cron -l 8 & ) && su - www-data -s /usr/local/bin/libnotices.py & apache2ctl -D FOREGROUND] | ||||||
		Reference in New Issue
	
	Block a user