From 029e5f6d0283d214eacfad3420dd450602c29771 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 11 Aug 2024 12:43:24 +0800 Subject: [PATCH] upgrade golang to 1.22, node.js to v20, alpine base image to 3.20.2 --- Dockerfile | 6 +++--- go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1f987fe..cf833301 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build backend binary file -FROM golang:1.21.12-alpine3.20 AS be-builder +FROM golang:1.22.6-alpine3.20 AS be-builder ARG RELEASE_BUILD ENV RELEASE_BUILD=$RELEASE_BUILD WORKDIR /go/src/github.com/mayswind/ezbookkeeping @@ -9,7 +9,7 @@ RUN apk add git gcc g++ libc-dev RUN ./build.sh backend # Build frontend files -FROM --platform=$BUILDPLATFORM node:18.20.3-alpine3.20 AS fe-builder +FROM --platform=$BUILDPLATFORM node:20.16.0-alpine3.20 AS fe-builder ARG RELEASE_BUILD ENV RELEASE_BUILD=$RELEASE_BUILD WORKDIR /go/src/github.com/mayswind/ezbookkeeping @@ -19,7 +19,7 @@ RUN apk add git RUN ./build.sh frontend # Package docker image -FROM alpine:3.20.1 +FROM alpine:3.20.2 LABEL maintainer="MaysWind " RUN addgroup -S -g 1000 ezbookkeeping && adduser -S -G ezbookkeeping -u 1000 ezbookkeeping RUN apk --no-cache add tzdata diff --git a/go.mod b/go.mod index 5bffef6c..cfda3de9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mayswind/ezbookkeeping -go 1.21 +go 1.22 require ( github.com/boombuler/barcode v1.0.2