-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from OpenCHAMI/17-bug-optsfile-appears-to-grow…
…-without-bounds Updated dnsmasq loader to deal with two directories rather than one
- Loading branch information
Showing
3 changed files
with
50 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM cgr.dev/chainguard/python:latest-dev as builder | ||
|
||
user root | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt . | ||
|
||
RUN pip install -r requirements.txt --user | ||
RUN pip install -r requirements.txt | ||
|
||
FROM cgr.dev/chainguard/python:latest | ||
|
||
user root | ||
|
||
WORKDIR /app | ||
|
||
# Make sure you update Python version in path | ||
COPY --from=builder /home/nonroot/.local/lib/python3.12/site-packages /home/nonroot/.local/lib/python3.12/site-packages | ||
|
||
COPY dnsmasq_updater.py . | ||
COPY --from=builder /usr/lib/python3.12/site-packages /usr/lib/python3.12/site-packages | ||
|
||
# Copy the rest of the application code | ||
COPY dnsmasq_updater.py . | ||
|
||
|
||
# Set the command to run your Python application | ||
ENTRYPOINT ["python", "/app/dnsmasq_updater.py"] | ||
ENTRYPOINT ["python", "/app/dnsmasq_updater.py"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters