diff --git a/go/app/bg/Dockerfile b/go/app/bg/Dockerfile index d7f985f..bd023e4 100644 --- a/go/app/bg/Dockerfile +++ b/go/app/bg/Dockerfile @@ -1,5 +1,5 @@ # build -FROM golang:1.19.3-alpine3.16 as builder +FROM golang:1.21-alpine as builder ARG VERSION COPY go/. /build WORKDIR /build/app/bg @@ -7,7 +7,7 @@ RUN mkdir -p bin/ && \ GOOS=linux GOFLAGS=-buildvcs=false go build -ldflags "-s -w -X main.Version=$VERSION" -o ./bin/bg ./cmd/server && \ cp configs/config.yaml ./bin/config.yaml # create docker image -FROM redis:6.2.7-alpine3.16 +FROM redis:alpine WORKDIR /app COPY go/app/bg/docker/start.sh . COPY go/app/bg/docker/dump.rdb . diff --git a/go/app/bi/Dockerfile b/go/app/bi/Dockerfile index 4059de5..8e5244f 100644 --- a/go/app/bi/Dockerfile +++ b/go/app/bi/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.3-alpine3.16 as builder +FROM golang:1.21-alpine as builder ARG VERSION COPY go/. /build WORKDIR /build/app/bi @@ -7,7 +7,7 @@ RUN mkdir -p bin/ && \ CGO_ENABLED=1 GOOS=linux GOFLAGS=-buildvcs=false go build -ldflags "-s -w -X main.Version=$VERSION" -o ./bin/bi ./cmd/server && \ cp configs/config.yaml ./bin/config.yaml -FROM alpine:3.16 +FROM alpine WORKDIR /app COPY --from=builder /build/app/bi/bin . EXPOSE 8001 diff --git a/go/app/bs/Dockerfile b/go/app/bs/Dockerfile index ace9b33..230986e 100644 --- a/go/app/bs/Dockerfile +++ b/go/app/bs/Dockerfile @@ -1,5 +1,5 @@ # build react spa -FROM node:16-alpine3.16 AS react-build +FROM node:16-alpine AS react-build ARG VERSION WORKDIR /build COPY js/bf/package.json js/bf/yarn.lock . @@ -8,7 +8,7 @@ COPY js/bf/ . RUN yarn build # build bs -FROM golang:1.19.3-alpine3.16 as go-build +FROM golang:1.21-alpine as go-build COPY go/. /build WORKDIR /build/app/bs RUN mkdir -p bin/ && \