Files
Arun Mallassery 90408eef02 Klipper paths fix. added mjpg-streamer (#56)
* follow recommendation in #20:
add restart: unless-stopped to fluidd

* Update MacOS Compatibility note

Added comment that MacOS Docker cannot currently map TTY devices to containers, preventing using Klipper via host serial devices

* fixed klipper paths
added mjpg stremer

* removed privilaged mode

---------

Co-authored-by: Dieter Schmidt <dima.loschkin@gmail.com>
Co-authored-by: Adam Nock <adamnock@users.noreply.github.com>
Co-authored-by: dimalo <ds_github@schmidt-in.space>
2024-11-03 14:45:57 +01:00

22 lines
721 B
Docker

FROM alpine as unzip
ARG FRONTEND_ZIP_URL=https://github.com/cadriel/fluidd/releases/latest/download/fluidd.zip
WORKDIR /frontend
ADD ${FRONTEND_ZIP_URL} /tmp/frontend.zip
RUN DEBIAN_FRONTEND=noninteractive && apk update && apk add unzip
RUN unzip /tmp/frontend.zip -d /frontend
FROM nginx:alpine as image
ENV KLIPPER_HOST klipper
ENV KLIPPER_API_PORT 7125
ENV JPEG_STREAM_HOST klipper
ENV JPEG_STREAM_PORT 8080
ADD --chown=101:101 common_vars.conf /etc/nginx/conf.d/common_vars.conf
COPY --chown=101:101 upstreams.conf.template /etc/nginx/templates/upstreams.conf.template
COPY --chown=101:101 client.conf /etc/nginx/conf.d/default.conf
COPY --from=unzip --chown=101:101 /frontend /usr/share/nginx/html
EXPOSE 80