diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index 408d39925..178c883fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM lukemathwalker/cargo-chef:latest-rust-1.59 AS chef +FROM lukemathwalker/cargo-chef:latest-rust-1.63 AS chef WORKDIR app FROM chef AS planner @@ -16,9 +16,13 @@ RUN cargo chef cook --release --recipe-path recipe.json COPY . . RUN cargo build --release --bin atuin -FROM debian:bullseye-20211011-slim AS runtime +FROM debian:bullseye-20220801-slim AS runtime + +RUN useradd -c 'atuin user' atuin && mkdir /config && chown atuin:atuin /config WORKDIR app +USER atuin + ENV TZ=Etc/UTC ENV RUST_LOG=atuin::api=info ENV ATUIN_CONFIG_DIR=/config |