diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 19:29:09 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 19:29:09 -0400 |
commit | 51c546665f348c773c97cc0ea2108e3bada1fb8f (patch) | |
tree | af97db70ff3953b638ef11f08c1cd24ff914bf07 /Dockerfile | |
parent | 48f99ea34b924bdbf3ed9187f486a3dc7de3022b (diff) | |
download | donetick-51c546665f348c773c97cc0ea2108e3bada1fb8f.tar.gz donetick-51c546665f348c773c97cc0ea2108e3bada1fb8f.tar.bz2 donetick-51c546665f348c773c97cc0ea2108e3bada1fb8f.zip |
Update Dockerfile to use Alpine base image and install libc6-compat
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |