mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
update golang and base image version
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
|||||||
# Build backend binary file
|
# 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
|
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN docker/backend-build-pre-setup.sh
|
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 \
|
&& GOOS=linux \
|
||||||
&& GOARCH=amd64 \
|
&& GOARCH=amd64 \
|
||||||
&& CGO_ENABLED=1 \
|
&& 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
|
RUN chmod +x ezbookkeeping
|
||||||
|
|
||||||
# Build frontend files
|
# 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
|
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN docker/frontend-build-pre-setup.sh
|
RUN docker/frontend-build-pre-setup.sh
|
||||||
@@ -23,7 +23,7 @@ RUN apk add git
|
|||||||
RUN npm install && npm run build
|
RUN npm install && npm run build
|
||||||
|
|
||||||
# Package docker image
|
# Package docker image
|
||||||
FROM alpine:3.12.0
|
FROM alpine:3.13.5
|
||||||
LABEL maintainer="MaysWind <i@mayswind.net>"
|
LABEL maintainer="MaysWind <i@mayswind.net>"
|
||||||
RUN addgroup -S -g 1000 ezbookkeeping && adduser -S -G ezbookkeeping -u 1000 ezbookkeeping
|
RUN addgroup -S -g 1000 ezbookkeeping && adduser -S -G ezbookkeeping -u 1000 ezbookkeeping
|
||||||
RUN apk --no-cache add tzdata
|
RUN apk --no-cache add tzdata
|
||||||
|
|||||||
Reference in New Issue
Block a user