diff --git a/Dockerfile b/Dockerfile index fad3966..0c931d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ FROM rust:1.75 as builder WORKDIR /app -ARG APP=imspyder -RUN USER=root cargo new $APP -WORKDIR /app/$APP +RUN USER=root cargo new imspyder +WORKDIR /app/imspyder RUN mkdir -p .cargo COPY config.toml .cargo/ COPY Cargo.toml Cargo.lock ./ @@ -15,9 +14,7 @@ RUN cargo install --path . --color always # Copy the app to an base Docker image, here we use distroless FROM alpine:latest -ARG APP=imspyder - RUN mkdir -p /cache -COPY --from=builder /usr/local/cargo/bin/$APP /$APP +COPY --from=builder /usr/local/cargo/bin/imspyder /imspyder USER 1000 -ENTRYPOINT ["/$APP"] \ No newline at end of file +ENTRYPOINT ["/imspyder"] \ No newline at end of file