diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5bef149 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +__pycache__ +build +dist +examples +Dockerfile +LICENSE.txt +MANIFEST.in +ycast.egg-info +.dockerignore +.env +.git +.gitignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..01de5a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +ADD . /opt/ + +RUN apk update && apk add python3 py3-pip && \ + cd /opt && python3 setup.py install && \ + cd / && rm -rf /opt && apk cache purge + +CMD python3 -m ycast -l 0.0.0.0 -p 8010 -c $STATIONS_PATH diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ff6fcfa --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + ycast: + image: satanowski/ycast + build: + context: . + restart: unless-stopped + ports: + - "8010:8010" + environment: + STATIONS_PATH: /etc/ycast/stations.yml + volumes: + - ./examples:/etc/ycast +