Dockerfile for 0.1
Dockerfile to use wiht version 0.1 of the repo, might need reworking for later versions
This commit is contained in:
parent
1fec94e049
commit
667e56a406
1 changed files with 16 additions and 5 deletions
21
Dockerfile
21
Dockerfile
|
@ -1,10 +1,21 @@
|
||||||
# Generate Python Image
|
# Generate iamge using Python base
|
||||||
FROM python:3.10.8-slim-buster as builder
|
FROM python:3.10.8-slim-buster
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /usr/bin/app
|
||||||
|
|
||||||
|
# install required tools
|
||||||
|
RUN apt update && apt install -y curl
|
||||||
|
|
||||||
# Copy only the required files over
|
# 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 ./
|
||||||
RUN ls -a /etc/systemd
|
|
||||||
|
|
||||||
#RUN pip install Cloudflare
|
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 Cloudflare
|
||||||
|
|
||||||
|
CMD ["bash", "set_ip.sh"]
|
Loading…
Reference in a new issue