Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
__pycache__
build
dist
examples
Dockerfile
LICENSE.txt
MANIFEST.in
ycast.egg-info
.dockerignore
.env
.git
.gitignore
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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