Adjust Dockerfile for feature/reorganize

Now installs modules from requirements.txt
This commit is contained in:
Neshura 2022-11-27 17:07:46 +01:00
parent 4b8d466874
commit 51a20e52af
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

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