Merge pull request 'work' (#5) from work into main

Reviewed-on: #5
This commit is contained in:
paradizelost 2024-11-25 13:56:32 -06:00
commit 2c1e992147
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
0 17 * * * python3 /usr/local/bin/libnotices.py
0 17 * * * www-data python3 /usr/local/bin/libnotices.py

View File

@ -7,4 +7,4 @@ services:
- "80:80"
volumes:
- "./libaccounts.json:/var/www/data/libaccounts.json"
- "./credentials:/root/.aws/credentials"
- "./credentials:/var/www/.aws/credentials"

View File

@ -1,3 +1,5 @@
boto==2.49.0
boto3==1.26.27
botocore==1.29.27
requests==2.28.1
tabulate==0.8.9