tweaking, hardening

This commit is contained in:
t3chn0m4g3
2024-11-28 15:55:27 +01:00
parent 0a0f62405a
commit adefcca2fc
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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