cloudflare-dns-updater/Dockerfile
Neshura 51a20e52af
Adjust Dockerfile for feature/reorganize
Now installs modules from requirements.txt
2022-11-27 17:07:46 +01:00

21 lines
No EOL
480 B
Docker

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