moving to init.sh
This commit is contained in:
parent
cca4e08feb
commit
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]
|
Loading…
x
Reference in New Issue
Block a user