diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1288f97 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:18.04 +RUN apt-get update && apt-get install \ + -y --no-install-recommends python3 python3-virtualenv + +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m virtualenv --python=/usr/bin/python3 $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +# Install dependencies: +COPY requirements.txt . +RUN pip install -r requirements.txt + +# Run the application: +COPY *.py ./ +ENTRYPOINT ["python", "zonefile.py"]