diff --git a/Dockerfile b/Dockerfile index b67b83f..e404082 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ USER 1000 COPY --chown=1000:1000 . /app -RUN cargo build +RUN cargo install --path . ENTRYPOINT ["/app/target/release/scope-tui"] CMD ["pulse"] diff --git a/compose_start.sh b/compose_start.sh new file mode 100755 index 0000000..a90e345 --- /dev/null +++ b/compose_start.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +docker compose up -d + +docker attach scope_tui + +docker compose down diff --git a/docker_start.sh b/docker_start.sh index a90e345..bcc72c0 100755 --- a/docker_start.sh +++ b/docker_start.sh @@ -1,7 +1,4 @@ #!/bin/sh -docker compose up -d - -docker attach scope_tui - -docker compose down +docker build -t scope_tui:latest . && + docker run --rm -it --name scope_tui -e "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native" -v "${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native" -v "$HOME/.config/pulse/cookie:/.config/pulse/cookie" scope_tui