Configure for docker compose
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Build stage
|
||||
FROM golang:1-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o zurg cmd/zurg/main.go
|
||||
|
||||
# Obfuscation stage
|
||||
FROM alpine:3 AS obfuscator
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/zurg .
|
||||
RUN apk add --no-cache upx
|
||||
RUN upx --brute zurg
|
||||
|
||||
# Final stage
|
||||
FROM alpine:3
|
||||
WORKDIR /app
|
||||
COPY --from=obfuscator /app/zurg .
|
||||
ENTRYPOINT ["./zurg"]
|
||||
Reference in New Issue
Block a user