1
1
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:
toastie89 2020-12-28 05:28:03 +01:00 committed by GitHub
parent dcdf855f4d
commit b59e2f17c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
Dockerfile Normal file
View 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"]