Skip to content

Commit

Permalink
Changed Frontend Build to buil msainsail remote
Browse files Browse the repository at this point in the history
  • Loading branch information
steadyjaw committed Apr 14, 2021
1 parent a34986d commit b69e6d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian as unzip

ARG FRONTEND_ZIP_URL=https://github.com/cadriel/fluidd/releases/latest/download/fluidd.zip
ARG FRONTEND_ZIP_URL=https://github.com/meteyou/mainsail/releases/latest/download/mainsail.zip

ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /frontend
Expand All @@ -11,13 +11,14 @@ RUN unzip /tmp/frontend.zip -d /frontend

FROM nginx:alpine as image

ENV KLIPPER_HOST klipper
ENV KLIPPER_HOST localhost
ENV KLIPPER_API_PORT 7125
ENV JPEG_STREAM_HOST localhost
ENV JPEG_STREAM_PORT 8888

ADD --chown=101:101 common_vars.conf /etc/nginx/conf.d/common_vars.conf
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 --chown=101:101 client.conf /etc/nginx/conf.d/default.conf
COPY --from=unzip --chown=101:101 /frontend /usr/share/nginx/html
EXPOSE 80
COPY --chown=101:101 config.json /usr/share/nginx/html/config.json
EXPOSE 80
3 changes: 3 additions & 0 deletions frontend/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"remoteMode": true
}

0 comments on commit b69e6d0

Please sign in to comment.