Skip to content

Commit

Permalink
Merge pull request #22 from stappersg/drop_user_nobody
Browse files Browse the repository at this point in the history
Dockerfile: Drop user nobody
  • Loading branch information
w4 authored Aug 30, 2023
2 parents 509a6bd + 8c46d65 commit 2b46329
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ RUN apt-get update && apt-get install -y libssl-dev pkg-config
COPY . /sources
WORKDIR /sources
RUN cargo build --release
RUN chown nobody:nogroup /sources/target/release/rgit

FROM debian:bullseye-slim
COPY --from=builder /sources/target/release/rgit /rgit

USER nobody
EXPOSE 8000
ENTRYPOINT ["/rgit", "[::]:8000", "/git", "-d", "/tmp/rgit-cache.db"]

0 comments on commit 2b46329

Please sign in to comment.