Adjust Dockerfile for feature/reorganize
Now installs modules from requirements.txt
This commit is contained in:
parent
4b8d466874
commit
51a20e52af
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ WORKDIR /usr/bin/app
|
||||||
RUN apt update && apt install -y curl
|
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 requirements.txt ./
|
||||||
|
|
||||||
RUN addgroup --system --gid 1001 pygroup
|
RUN addgroup --system --gid 1001 pygroup
|
||||||
RUN adduser --system --uid 1001 pyapp
|
RUN adduser --system --uid 1001 pyapp
|
||||||
|
@ -16,6 +16,6 @@ RUN chown -R pyapp:pygroup /usr/bin/app
|
||||||
|
|
||||||
USER pyapp
|
USER pyapp
|
||||||
|
|
||||||
RUN pip install Cloudflare
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
CMD ["bash", "set_ip.sh"]
|
CMD ["bash", "set_ip.sh", "docker"]
|
Loading…
Reference in a new issue