updated
هذا الالتزام موجود في:
15
test-projects/go-test/Dockerfile
Normal file
15
test-projects/go-test/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# 🔷 Auto-generated Dockerfile for Go
|
||||
# Ghaymah detected:
|
||||
FROM golang:1.22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum* ./
|
||||
RUN go mod download 2>/dev/null || true
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/app .
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk --no-cache add ca-certificates
|
||||
COPY --from=builder /app/bin/app /app
|
||||
EXPOSE 8080
|
||||
CMD ["/app"]
|
||||
المرجع في مشكلة جديدة
حظر مستخدم