From f4b7db64c1a7436376a6dcd0d077c0509901fa1f Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 26 Feb 2023 22:44:50 +0100 Subject: [PATCH] Remove Dockerfile, opting for linux container instead --- Dockerfile | 21 --------------------- api-key-empty.json | 3 +++ 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 Dockerfile create mode 100644 api-key-empty.json diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 61f8b38..0000000 --- a/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -# Generate iamge using Python base -FROM python:3.10.8-slim-buster - -WORKDIR /usr/bin/app - -# install required tools -RUN apt update && apt install -y curl - -# Copy only the required files over -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 - -RUN chown -R pyapp:pygroup /usr/bin/app - -USER pyapp - -RUN pip install -r requirements.txt - -CMD ["bash", "set_ip.sh", "docker"] \ No newline at end of file diff --git a/api-key-empty.json b/api-key-empty.json new file mode 100644 index 0000000..392cfb1 --- /dev/null +++ b/api-key-empty.json @@ -0,0 +1,3 @@ +{ + "api_key": "" +} \ No newline at end of file