mirror of
https://github.com/fergalmoran/dss.radio.git
synced 2025-12-22 01:37:58 +00:00
Dockerfile changes
This commit is contained in:
@@ -13,12 +13,12 @@ ADD requirements.txt /code/
|
|||||||
ADD server.py /code/
|
ADD server.py /code/
|
||||||
ADD ice_relay.py /code/
|
ADD ice_relay.py /code/
|
||||||
ADD static /code/static/
|
ADD static /code/static/
|
||||||
|
ADD util /code/util/
|
||||||
ADD templates /code/templates/
|
ADD templates /code/templates/
|
||||||
ADD dss.radio.conf /code/
|
ADD dss.radio.conf /code/
|
||||||
|
|
||||||
# Install tornado
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
CMD ["python", "server.py"]
|
CMD ["python", "server.py"]
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ relay = IceRelay(options=options)
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
if relay.channel_open():
|
if relay.channel_open():
|
||||||
|
logging.error("Starting relay")
|
||||||
relay.start()
|
relay.start()
|
||||||
else:
|
else:
|
||||||
logging.error("IceCast relay failed to start")
|
logging.error("IceCast relay failed to start")
|
||||||
|
|||||||
Reference in New Issue
Block a user