Added docker-files

master
Ruakij 3 years ago
parent 83497e92e8
commit d8489a59a5

@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD [ "bash", "-c", "./entry.sh" ]

@ -0,0 +1,10 @@
#!/bin/bash
# Create data-dir if not exists
mkdir -p /data
# TryCopy configs to data-dir
cp -n data/* /data/
# Execute daemon
python3 daemon.py

@ -0,0 +1,2 @@
pyyaml
py3dns
Loading…
Cancel
Save