mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
tweaking, hardening
This commit is contained in:
parent
0a0f62405a
commit
adefcca2fc
3 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ RUN go get github.com/ua-parser/uap-go/uaparser
|
|||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /opt/go-pot/go-pot
|
||||
#
|
||||
FROM alpine:3.20
|
||||
FROM scratch
|
||||
#
|
||||
COPY --from=builder /opt/go-pot/go-pot /opt/go-pot/go-pot
|
||||
COPY --from=builder /opt/go-pot/config.yml /opt/go-pot/config.yml
|
||||
|
|
|
@ -9,7 +9,7 @@ WORKDIR /opt/go-pot
|
|||
#
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /opt/go-pot/go-pot
|
||||
#
|
||||
FROM alpine:3.20
|
||||
FROM scratch
|
||||
#
|
||||
COPY --from=builder /opt/go-pot/go-pot /opt/go-pot/go-pot
|
||||
COPY dist/config.yml /opt/go-pot/config.yml
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FROM golang:1.21-alpine AS builder
|
||||
FROM golang:1.23-alpine AS builder
|
||||
WORKDIR /app
|
||||
#
|
||||
RUN apk -U add git openssl
|
||||
RUN git clone https://github.com/t3chn0m4g3/h0neytr4p -b v0.32 /app
|
||||
RUN git clone https://github.com/t3chn0m4g3/h0neytr4p -b v0.33 /app
|
||||
RUN go mod download
|
||||
RUN go mod tidy
|
||||
RUN go build -o /app/main
|
||||
|
|
Loading…
Reference in a new issue