From 0f6dea7647fdc61e904a4fe16da549d8ca7dd6dd Mon Sep 17 00:00:00 2001 From: genshen Date: Fri, 20 Oct 2023 15:51:56 +0800 Subject: [PATCH] build(docker): bump node to 18.18.2, golang to 1.21.3 and apline to 3.18 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 555b4fe..23a2527 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # build method: just run `docker build --rm -t genshen/wssocks .` # build frontend code -FROM node:14.15.4-alpine3.12 AS web-builder +FROM node:18.18.2-alpine3.18 AS web-builder COPY status-web web/ @@ -10,7 +10,7 @@ RUN cd web \ && yarn build ## build go binary -FROM golang:1.15.7-alpine3.13 AS builder +FROM golang:1.21.3-alpine3.18 AS builder ARG PACKAGE=github.com/genshen/wssocks ARG BUILD_FLAG="-X 'github.com/genshen/wssocks/version.buildHash=`git rev-parse HEAD`' \ @@ -18,7 +18,7 @@ ARG BUILD_FLAG="-X 'github.com/genshen/wssocks/version.buildHash=`git rev-parse -X 'github.com/genshen/wssocks/version.buildGoVersion=`go version | cut -f 3,4 -d\" \"`'" RUN apk add --no-cache git \ - && go get -u github.com/rakyll/statik + && go install github.com/rakyll/statik COPY ./ /go/src/${PACKAGE}/ COPY --from=web-builder web/build /go/src/github.com/genshen/wssocks/web-build/ @@ -31,7 +31,7 @@ RUN cd ./src/${PACKAGE} \ && go install ## copy binary -FROM alpine:3.13.0 +FROM alpine:3.18.0 ARG HOME="/home/wssocks"