Initial commit
This commit is contained in:
commit
4b3330c6c2
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
RUN apk update && apk upgrade
|
||||||
|
RUN apk add --update --no-cache python3 python3-dev py-pip git build-base freetype-dev nginx
|
||||||
|
|
||||||
|
RUN pip install --upgrade pip && \
|
||||||
|
pip install wheel && \
|
||||||
|
pip install gunicorn \
|
||||||
|
pip install flask
|
||||||
|
|
||||||
|
RUN git clone https://git.blackfinn.de/python/weblight.git
|
||||||
|
RUN cd weblight && python3 setup.py install
|
||||||
|
RUN rm -rf weblight
|
||||||
|
|
||||||
|
RUN mkdir -p /run/nginx
|
||||||
|
|
||||||
|
COPY run.sh /bin/
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/run.sh"]
|
||||||
|
|
1
README.md
Normal file
1
README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker run --detach --restart always --name weblight --cap-add SYS_RAWIO --device=/dev/mem:/dev/mem --device=/dev/gpiomem:/dev /gpiomem --publish 80:80 weblight
|
Loading…
Reference in New Issue
Block a user