mirror of
https://github.com/fluencelabs/dashboard
synced 2024-12-04 23:30:20 +00:00
21 lines
487 B
Docker
21 lines
487 B
Docker
FROM caddy
|
|
WORKDIR /
|
|
COPY ./bundle /bundle
|
|
COPY Caddyfile /Caddyfile
|
|
|
|
#RUN printf '\n\
|
|
#dash.fluence.dev {\n\
|
|
# try_files /bundle/{path} /bundle/index.html?{query}&p={path}\n\
|
|
#}\n\
|
|
#'\
|
|
#>> /tmp/hello
|
|
|
|
#RUN echo 'try_files /bundle/{path} /bundle/index.html?{query}&p={path}' > Caddyfile
|
|
|
|
VOLUME /data
|
|
|
|
#CMD ["caddy", "file-server", "--root", "/bundle", "--browse"]
|
|
CMD ["caddy", "run", "--config", "/Caddyfile"]
|
|
|
|
# DO NOT FORGET TO USE VOLUME OR CERTBOT WILL BAN: -v caddy_data:/data
|