diff --git a/Dockerfile b/Dockerfile index f5b84f36..4403877b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build backend binary file -FROM golang:1.14.10-alpine3.12 AS be-builder +FROM golang:1.16.4-alpine3.13 AS be-builder WORKDIR /go/src/github.com/mayswind/ezbookkeeping COPY . . RUN docker/backend-build-pre-setup.sh @@ -11,11 +11,11 @@ RUN VERSION=`grep '"version": ' package.json | awk -F ':' '{print $2}' | tr -d ' && GOOS=linux \ && GOARCH=amd64 \ && CGO_ENABLED=1 \ - && go build -a -v -i -trimpath -ldflags "-w -linkmode external -extldflags '-static' ${VERSION_FLAGS}" -o ezbookkeeping ezbookkeeping.go + && go build -a -v -trimpath -ldflags "-w -linkmode external -extldflags '-static' ${VERSION_FLAGS}" -o ezbookkeeping ezbookkeeping.go RUN chmod +x ezbookkeeping # Build frontend files -FROM node:12.19.0-alpine3.12 AS fe-builder +FROM node:14.17.0-alpine3.13 AS fe-builder WORKDIR /go/src/github.com/mayswind/ezbookkeeping COPY . . RUN docker/frontend-build-pre-setup.sh @@ -23,7 +23,7 @@ RUN apk add git RUN npm install && npm run build # Package docker image -FROM alpine:3.12.0 +FROM alpine:3.13.5 LABEL maintainer="MaysWind " RUN addgroup -S -g 1000 ezbookkeeping && adduser -S -G ezbookkeeping -u 1000 ezbookkeeping RUN apk --no-cache add tzdata