update golang and base image version
This commit is contained in:
+4
-4
@@ -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 <i@mayswind.net>"
|
||||
RUN addgroup -S -g 1000 ezbookkeeping && adduser -S -G ezbookkeeping -u 1000 ezbookkeeping
|
||||
RUN apk --no-cache add tzdata
|
||||
|
||||
Reference in New Issue
Block a user