diff --git a/Dockerfile b/Dockerfile index 9fcdd22..7bb8e1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c6633ea --- /dev/null +++ b/docker-compose.yml @@ -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" \ No newline at end of file