Files

22 lines
721 B
Docker
Raw Permalink Normal View History

2022-01-15 11:45:44 +01:00
FROM alpine as unzip
2021-01-04 01:54:33 +01:00
ARG FRONTEND_ZIP_URL=https://github.com/cadriel/fluidd/releases/latest/download/fluidd.zip
WORKDIR /frontend
ADD ${FRONTEND_ZIP_URL} /tmp/frontend.zip
2022-01-15 11:45:44 +01:00
RUN DEBIAN_FRONTEND=noninteractive && apk update && apk add unzip
2021-01-04 01:54:33 +01:00
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
2021-01-04 01:54:33 +01:00
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