fix: docker improvements

bind to all IPs, turn off desktop features
feat/type-attributes
Tomáš Mládek 2023-08-23 17:16:38 +02:00
parent 1576c78d87
commit a8da96d6ef
2 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,10 @@ docker:
rm -rf /var/lib/apt/lists/*
COPY +upend-cli/bin /usr/bin/upend
COPY --dir +webui/dist /usr/share/upend/webui
CMD ["/usr/bin/upend"]
ENTRYPOINT ["/usr/bin/upend"]
CMD ["serve", "/vault", "--bind", "0.0.0.0:8093"]
EXPOSE 8093
ENV UPEND_NO_DESKTOP=true
ARG tag=trunk
SAVE IMAGE --push upend/upend:$tag

View File

@ -137,7 +137,7 @@ struct ServeArgs {
no_browser: bool,
/// Disable desktop features (web browser, native file opening).
#[arg(long)]
#[arg(long, env = "UPEND_NO_DESKTOP")]
no_desktop: bool,
/// Trust the vault, and open local executable files.