Remove Dockerfile, opting for linux container instead

This commit is contained in:
Neshura 2023-02-26 22:44:50 +01:00
parent 2433907dd6
commit f4b7db64c1
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A
2 changed files with 3 additions and 21 deletions

View file

@ -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"]

3
api-key-empty.json Normal file
View file

@ -0,0 +1,3 @@
{
"api_key": ""
}