Skip to content

Commit

Permalink
Switch to slim image for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Nov 16, 2023
1 parent 9e95f3d commit 5efd05f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN /go/src/github.com/bishopfox/sliver/go-tests.sh

# STAGE: production
## Final dockerized form of Sliver
FROM --platform=linux/amd64 golang:1.21.4 as production
FROM --platform=linux/amd64 debian:bookworm-slim as production

### Copy compiled binary
COPY --from=base /opt/sliver-server /opt/sliver-server
Expand All @@ -63,4 +63,5 @@ RUN /opt/sliver-server unpack --force

USER sliver
WORKDIR /home/sliver/
VOLUME [ "/home/sliver/.sliver" ]
ENTRYPOINT [ "/opt/sliver-server" ]

0 comments on commit 5efd05f

Please sign in to comment.