Move Dockerfile & startup script to sperate directory

This commit is contained in:
Chris Kiriakou
2025-03-21 18:54:07 +01:00
parent cf7ede5495
commit 2d4e951693
2 changed files with 0 additions and 38 deletions
-24
View File
@@ -1,24 +0,0 @@
FROM alpine:latest
WORKDIR /root
RUN apk update && \
apk add --no-cache \
openssh \
python3 \
py3-pip \
sqlite
EXPOSE 22
RUN mkdir /root/src
COPY ./startup.sh /root
COPY ./requirements.txt /root
COPY ./src/ /root/src/
RUN ls -la
VOLUME /root
ENTRYPOINT ["/bin/sh", "/root/startup.sh"]
-14
View File
@@ -1,14 +0,0 @@
#!/bin/sh
#
# Starup the predictify scraper
if test -f ./requirements.txt
then
python3 -m venv .venv
.venv/bin/pip install -r ./requirements.txt
else
printf "Missing requirements file! aborting...\n"
exit 1
fi
.venv/bin/python3 src/runtime.py