Dockerfile changes
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -9,14 +9,15 @@ COPY . .
|
|||||||
RUN CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags="-s -w" -o zurg cmd/zurg/main.go
|
RUN CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags="-s -w" -o zurg cmd/zurg/main.go
|
||||||
|
|
||||||
# Obfuscation stage
|
# Obfuscation stage
|
||||||
FROM alpine:3 AS obfuscator
|
# FROM alpine:3 AS obfuscator
|
||||||
WORKDIR /app
|
# WORKDIR /app
|
||||||
COPY --from=builder /app/zurg .
|
# COPY --from=builder /app/zurg .
|
||||||
RUN apk add --no-cache upx
|
# RUN apk add --no-cache upx
|
||||||
RUN upx --brute zurg
|
# RUN upx --brute zurg
|
||||||
|
|
||||||
# Final stage
|
# Final stage
|
||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=obfuscator /app/zurg .
|
COPY --from=builder /app/zurg .
|
||||||
|
RUN apk add --no-cache fuse3
|
||||||
ENTRYPOINT ["./zurg"]
|
ENTRYPOINT ["./zurg"]
|
||||||
|
|||||||
Reference in New Issue
Block a user