From 7ae3720b23f346ce737aa3f59237532ad435c15e Mon Sep 17 00:00:00 2001 From: dualfade Date: Fri, 20 Sep 2024 14:14:06 -0400 Subject: [PATCH 1/2] update 1.23.1-alpine3.20 + GO111MODULE=on --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a86f46f..ae5772d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM golang:1.20.6-alpine AS builder +FROM golang:1.23.1-alpine3.20 AS builder RUN apk add --no-cache git gcc musl-dev WORKDIR /app COPY . /app RUN go mod download -RUN go build ./cmd/katana +RUN GO111MODULE=on go build -o katana ./cmd/katana/main.go FROM alpine:3.18.5 -RUN apk -U upgrade --no-cache \ - && apk add --no-cache bind-tools ca-certificates chromium +RUN apk add --no-cache bind-tools ca-certificates chromium COPY --from=builder /app/katana /usr/local/bin/ ENTRYPOINT ["katana"] From 54f7b88f5be4513c28862e4927dd9abfa8218609 Mon Sep 17 00:00:00 2001 From: sandeep <8293321+ehsandeep@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:40:04 +0530 Subject: [PATCH 2/2] updated to golang 1.21 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae5772d6..55e84167 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:1.23.1-alpine3.20 AS builder +FROM golang:1.21-alpine AS build-env RUN apk add --no-cache git gcc musl-dev WORKDIR /app COPY . /app RUN go mod download -RUN GO111MODULE=on go build -o katana ./cmd/katana/main.go +RUN go build ./cmd/katana FROM alpine:3.18.5 RUN apk add --no-cache bind-tools ca-certificates chromium