-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a443a6c
commit 552bddd
Showing
2 changed files
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.git/ | ||
build/ |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.8-slim | ||
|
||
RUN useradd --home-dir /app cfdns | ||
WORKDIR /app | ||
RUN chown cfdns /app | ||
USER cfdns | ||
|
||
ENV POETRY_VIRTUALENVS_CREATE=false | ||
ENV PATH=$PATH:/app/.local/bin | ||
|
||
RUN pip install --no-cache-dir poetry | ||
|
||
COPY pyproject.toml poetry.lock /app/ | ||
RUN poetry install --no-dev | ||
|
||
COPY cfdns.py /app/ | ||
|
||
ENTRYPOINT ["python", "cfdns.py"] |