From 95d481ccc9b103d2a21a77dfd26ff68bec427ef9 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 2 Dec 2023 16:23:11 -0500 Subject: [PATCH] Dockerize application to run on cronjob --- Dockerfile | 11 +++++++++++ main.py => stockbot-buyvm.py | 0 2 files changed, 11 insertions(+) create mode 100644 Dockerfile rename main.py => stockbot-buyvm.py (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..84735be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.10 + +WORKDIR /app + +COPY requirements.txt /app +RUN pip install -r requirements.txt + +COPY stockbot-buyvm.py /app +COPY config.py /app + +CMD ["python", "stockbot-buyvm.py"] \ No newline at end of file diff --git a/main.py b/stockbot-buyvm.py similarity index 100% rename from main.py rename to stockbot-buyvm.py