fix(socket-proxy): update golang version. fix Dockerfile

This commit is contained in:
yusing
2025-12-10 17:56:04 +08:00
parent d547872a41
commit 76b8252755
3 changed files with 6 additions and 4 deletions

View File

@@ -6,6 +6,8 @@ on:
- main
paths:
- "socket-proxy/**"
- "socket-proxy.Dockerfile"
- ".github/workflows/docker-image-socket-proxy.yml"
tags-ignore:
- "**"
workflow_dispatch:

View File

@@ -1,5 +1,5 @@
# Stage 1: deps
FROM golang:1.24.3-alpine AS deps
FROM golang:1.25.5-alpine AS deps
HEALTHCHECK NONE
# package version does not matter
@@ -12,7 +12,8 @@ WORKDIR /src
COPY socket-proxy/go.mod socket-proxy/go.sum ./
RUN go mod download -x
RUN sed -i '/^module github\.com\/yusing\/goutils/!{/github\.com\/yusing\/goutils/d}' go.mod && \
go mod download -x
# Stage 2: builder
FROM deps AS builder
@@ -21,6 +22,7 @@ WORKDIR /src
COPY Makefile ./
COPY socket-proxy ./socket-proxy
COPY goutils ./goutils
ARG VERSION
ENV VERSION=${VERSION}

View File

@@ -2,8 +2,6 @@ module github.com/yusing/godoxy/socketproxy
go 1.25.5
exclude github.com/yusing/goutils v0.4.2
replace github.com/yusing/goutils => ../goutils
require (