Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kissgyorgy committed Jul 3, 2020
1 parent a443a6c commit 552bddd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git/
build/
18 changes: 18 additions & 0 deletions Dockerfile
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"]

0 comments on commit 552bddd

Please sign in to comment.