Add scorometer dockerfile

This commit is contained in:
Zoe Roux
2022-12-21 16:28:21 +09:00
committed by GitBluub
parent 4fdb825c60
commit 78496a5223
7 changed files with 59 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:latest
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 pip install -r ./requirements.txt
CMD ["/usr/bin/websocketd", "--port=6543", "--devconsole", "--", "python3", "./main.py"]