mirror of
https://github.com/ssut/payload-dumper-go.git
synced 2024-05-13 19:19:11 +00:00
feat: add Dockerfile (#2)
This commit is contained in:
parent
dcdf855f4d
commit
b59e2f17c2
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM golang as builder
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install liblzma-dev
|
||||
|
||||
RUN git clone https://github.com/ssut/payload-dumper-go
|
||||
|
||||
RUN cd payload-dumper-go \
|
||||
&& GOOS=linux go build -a -ldflags '-extldflags "-static"' /go/payload-dumper-go
|
||||
|
||||
FROM alpine
|
||||
COPY --from=builder /go/payload-dumper-go/payload-dumper-go /go/bin/
|
||||
ENTRYPOINT ["/go/bin/payload-dumper-go"]
|
Loading…
Reference in New Issue
Block a user