commit
2c1e992147
@ -6,7 +6,9 @@ COPY refresh.php /var/www/html/
|
||||
COPY libnotices.py /usr/local/bin/
|
||||
COPY requirements.txt /
|
||||
RUN pip3 install -r /requirements.txt
|
||||
RUN mkdir /var/www/.aws
|
||||
RUN chmod +x /usr/local/bin/libnotices.py
|
||||
RUN chown www-data:www-data /var/www -R
|
||||
RUN apt clean
|
||||
EXPOSE 80
|
||||
CMD ( cron -l 8 & ) && apache2ctl -D FOREGROUND
|
||||
CMD ( cron -l 8 & ) && su -u www-data python3 /usr/local/bin/libnotices.py && apache2ctl -D FOREGROUND
|
2
crontab
2
crontab
@ -1 +1 @@
|
||||
0 17 * * * python3 /usr/local/bin/libnotices.py
|
||||
0 17 * * * www-data python3 /usr/local/bin/libnotices.py
|
@ -7,4 +7,4 @@ services:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- "./libaccounts.json:/var/www/data/libaccounts.json"
|
||||
- "./credentials:/root/.aws/credentials"
|
||||
- "./credentials:/var/www/.aws/credentials"
|
@ -1,3 +1,5 @@
|
||||
boto==2.49.0
|
||||
boto3==1.26.27
|
||||
botocore==1.29.27
|
||||
botocore==1.29.27
|
||||
requests==2.28.1
|
||||
tabulate==0.8.9
|
Loading…
x
Reference in New Issue
Block a user