Files
Chromacase/scorometer/Dockerfile
2023-12-05 00:02:06 +01:00

14 lines
503 B
Docker

FROM python:3.10-alpine
RUN wget -q -O /tmp/websocketd.zip \
https://github.com/joewalnes/websocketd/releases/download/v0.4.1/websocketd-0.4.1-linux_amd64.zip \
&& unzip /tmp/websocketd.zip -d /tmp/websocketd && mv /tmp/websocketd/websocketd /usr/bin \
&& chmod +x /usr/bin/websocketd
WORKDIR /app
COPY ./requirements.txt .
RUN pip3 install -r ./requirements.txt
COPY . .
CMD /usr/bin/websocketd --port=6543 --staticdir=. --passenv API_KEY_SCORO,BACK_URL,MUSICS_FOLDER -- python3 main.py