mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-11 18:58:21 +00:00
24 lines
No EOL
557 B
Docker
24 lines
No EOL
557 B
Docker
FROM golang:1.23-alpine AS builder
|
|
RUN <<EOF
|
|
apk -U upgrade
|
|
apk -U add git
|
|
mkdir -p /opt
|
|
cd /opt
|
|
git clone https://github.com/t3chn0m4g3/go-pot
|
|
cd go-pot
|
|
git checkout 75a2cae856642fdccf3e9d47d0733cf4190ba70b
|
|
EOF
|
|
WORKDIR /opt/go-pot
|
|
#
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /opt/go-pot/go-pot
|
|
#
|
|
FROM scratch
|
|
#
|
|
COPY --from=builder /opt/go-pot/go-pot /opt/go-pot/go-pot
|
|
COPY dist/config.yml /opt/go-pot/config.yml
|
|
#
|
|
STOPSIGNAL SIGINT
|
|
USER 2000:2000
|
|
WORKDIR /opt/go-pot
|
|
CMD ["start", "--host", "0.0.0.0", "--config-file", "config.yml"]
|
|
ENTRYPOINT ["./go-pot"] |