diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..79f2a03 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM alpine:latest + +WORKDIR /root + +RUN apk update && \ + apk add --no-cache \ + openssh \ + python3 \ + sqlite \ + pip \ + +EXPOSE 80 +EXPOSE 22 + +VOLUME /root/data +VOLUME /root/app + +ENTRYPOINT /root/startup.sh; diff --git a/startup.sh b/startup.sh new file mode 100644 index 0000000..7915cf1 --- /dev/null +++ b/startup.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Starup the predictify scraper + +if test -f ./requirements.txt +then + pip install -r ./requirements.txt +else + printf "Missing requirements file! aborting...\n" + exit 1 +fi + +python3 ./src/scraper.py +