From 2d4e9516931a85bd57b5949eeca91238bb3dccd5 Mon Sep 17 00:00:00 2001 From: Chris Kiriakou Date: Fri, 21 Mar 2025 18:54:07 +0100 Subject: [PATCH] Move Dockerfile & startup script to sperate directory --- Dockerfile | 24 ------------------------ startup.sh | 14 -------------- 2 files changed, 38 deletions(-) delete mode 100644 Dockerfile delete mode 100755 startup.sh diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 45f0f04..0000000 --- a/Dockerfile +++ /dev/null @@ -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"] diff --git a/startup.sh b/startup.sh deleted file mode 100755 index 7f269f3..0000000 --- a/startup.sh +++ /dev/null @@ -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