work #1

Merged
paradizelost merged 2 commits from work into main 2024-11-25 13:13:31 -06:00
2 changed files with 13 additions and 1 deletions

View File

@ -7,4 +7,6 @@ COPY libnotices.py /usr/local/bin/
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
RUN chmod +x /usr/local/bin/libnotices.py
#COPY img/* /var/www/html/img/
RUN apt clean
EXPOSE 80
CMD ["cron && apache2ctl -D FOREGROUND"]

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
services:
libnotices:
image: git.hamik.net/paradizelost/librarynotices:latest
container_name: libnotices
restart: always
ports:
- "80:80"
volumes:
- "./libaccounts.json:/var/www/data/libaccounts.json"
- "./credentials:/root/.aws/credentials"