From 51c546665f348c773c97cc0ea2108e3bada1fb8f Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Fri, 6 Sep 2024 19:29:09 -0400 Subject: Update Dockerfile to use Alpine base image and install libc6-compat --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef46a01..5d4a62b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM golang:1.22 AS builder +FROM golang:1.22-alpine AS builder WORKDIR /usr/src/app @@ -13,7 +13,7 @@ RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -buildvcs=false -o /donet FROM alpine:latest # Install necessary CA certificates -RUN apk --no-cache add ca-certificates +RUN apk --no-cache add ca-certificates libc6-compat # Copy the binary and config folder from the builder stage COPY --from=builder /donetick /donetick -- cgit