mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-23 06:11:02 +00:00
pass the feed URL via env var rather than config map so that standalone Docker usage is simplified
This commit is contained in:
+7
-6
@@ -15,18 +15,19 @@ FROM docker.io/nginx:stable-alpine
|
||||
LABEL maintainer="Chevdor <chevdor@gmail.com>"
|
||||
LABEL description="Polkadot Telemetry frontend"
|
||||
|
||||
# When we run the built docker image, the default command uses this
|
||||
# env var to tell the UI where to look to get feed info.
|
||||
ENV SUBSTRATE_TELEMETRY_URL=
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
#COPY --from=builder /opt/builder/env.sh /usr/bin/
|
||||
#RUN apk add --no-cache bash; chmod +x /usr/bin/env.sh
|
||||
COPY --from=builder /opt/builder/env.sh /usr/bin/
|
||||
RUN apk add --no-cache bash; chmod +x /usr/bin/env.sh
|
||||
|
||||
#COPY --from=builder /opt/builder/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
#COPY --from=builder /opt/builder/nginx/default /etc/nginx/sites-available/default
|
||||
COPY --from=builder /opt/builder/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=builder /opt/builder/nginx/default /etc/nginx/sites-available/default
|
||||
COPY --from=builder /opt/builder/build /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
#CMD ["/bin/bash", "-c", "/usr/bin/env.sh && nginx -g \"daemon off;\""]
|
||||
CMD [ "nginx", "-g" ,"daemon off;"]
|
||||
CMD ["/bin/bash", "-c", "/usr/bin/env.sh && nginx -g \"daemon off;\""]
|
||||
|
||||
Reference in New Issue
Block a user