Compare commits

..

7 commits

Author SHA1 Message Date
KV-Tube Deployer
bdfd537c6e fix: enforce GOTOOLCHAIN=local in dockerfile
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / build (push) Blocked by required conditions
2026-03-24 22:54:41 +07:00
KV-Tube Deployer
b7de4adc00 fix: rewrite go.mod header in dockerfile 2026-03-24 22:54:00 +07:00
KV-Tube Deployer
80bfc4f602 fix: toolchain removal and in-container go tidy 2026-03-24 22:53:18 +07:00
KV-Tube Deployer
0c51e3c888 fix: robust go version sed in dockerfile 2026-03-24 22:52:29 +07:00
KV-Tube Deployer
589c104694 fix: force go version via sed in dockerfile 2026-03-24 22:51:24 +07:00
KV-Tube Deployer
8ea5f2b09f fix: downgrade go version to 1.24.0 for docker build 2026-03-24 22:49:48 +07:00
KV-Tube Deployer
1cb7a73a61 debug: split apk add steps 2026-03-24 22:48:46 +07:00
2 changed files with 11 additions and 10 deletions

View file

@ -1,8 +1,10 @@
# ---- Backend Builder ----
FROM golang:1.24-alpine AS backend-builder
ENV GOTOOLCHAIN=local
WORKDIR /app
RUN apk add --no-cache git gcc musl-dev
COPY backend/go.mod backend/go.sum ./
RUN (echo "module kvtube-go"; echo ""; echo "go 1.24.0"; tail -n +4 go.mod) > go.mod.new && mv go.mod.new go.mod && go mod tidy
RUN go mod download
COPY backend/ ./
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o kv-tube .
@ -26,15 +28,14 @@ RUN echo "NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL" && npm run build
FROM alpine:latest
# Install dependencies for Go backend, Node.js frontend, and Supervisord
RUN apk add --no-cache \
nodejs \
ca-certificates \
ffmpeg \
curl \
python3 \
py3-pip \
supervisor \
&& curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
RUN apk add --no-cache nodejs
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ffmpeg
RUN apk add --no-cache curl
RUN apk add --no-cache python3
RUN apk add --no-cache py3-pip
RUN apk add --no-cache supervisor
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
&& chmod a+rx /usr/local/bin/yt-dlp
WORKDIR /app

View file

@ -1,6 +1,6 @@
module kvtube-go
go 1.25.0
go 1.24.0
require (
github.com/gin-gonic/gin v1.11.0