From bd1fb6167b28d92c06f75fe414f219c83a03b0af Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Tue, 26 Dec 2023 06:09:45 +0530 Subject: Dockerfile: Removing excluded package's build dependency and Compiler Flag --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6dd20d1..30173a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,8 @@ RUN go mod download COPY . . -#Install the build dependencies -RUN apk add --no-cache gcc libc-dev - # Build the binary -#CGO_ENABLED=1 for go-sqlite3 to work -RUN CGO_ENABLED=1 go build -o main . +RUN go build -o main . # Runner Stage FROM alpine:latest -- cgit v1.2.3