From 51a20e52afa6ce266cf409d712726955546d9526 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 27 Nov 2022 17:07:46 +0100 Subject: [PATCH] Adjust Dockerfile for feature/reorganize Now installs modules from requirements.txt --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14dda66..61f8b38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /usr/bin/app RUN apt update && apt install -y curl # Copy only the required files over -COPY set_ip.sh cloudflare_script.py config.ini cloudflare.json ./ +COPY set_ip.sh cloudflare_script.py config.ini cloudflare.json requirements.txt ./ RUN addgroup --system --gid 1001 pygroup RUN adduser --system --uid 1001 pyapp @@ -16,6 +16,6 @@ RUN chown -R pyapp:pygroup /usr/bin/app USER pyapp -RUN pip install Cloudflare +RUN pip install -r requirements.txt -CMD ["bash", "set_ip.sh"] \ No newline at end of file +CMD ["bash", "set_ip.sh", "docker"] \ No newline at end of file