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