Compare commits
7 commits
729c5440ad
...
bdfd537c6e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdfd537c6e | ||
|
|
b7de4adc00 | ||
|
|
80bfc4f602 | ||
|
|
0c51e3c888 | ||
|
|
589c104694 | ||
|
|
8ea5f2b09f | ||
|
|
1cb7a73a61 |
2 changed files with 11 additions and 10 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,8 +1,10 @@
|
||||||
# ---- Backend Builder ----
|
# ---- Backend Builder ----
|
||||||
FROM golang:1.24-alpine AS backend-builder
|
FROM golang:1.24-alpine AS backend-builder
|
||||||
|
ENV GOTOOLCHAIN=local
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache git gcc musl-dev
|
RUN apk add --no-cache git gcc musl-dev
|
||||||
COPY backend/go.mod backend/go.sum ./
|
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
|
RUN go mod download
|
||||||
COPY backend/ ./
|
COPY backend/ ./
|
||||||
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o kv-tube .
|
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
|
FROM alpine:latest
|
||||||
|
|
||||||
# Install dependencies for Go backend, Node.js frontend, and Supervisord
|
# Install dependencies for Go backend, Node.js frontend, and Supervisord
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache nodejs
|
||||||
nodejs \
|
RUN apk add --no-cache ca-certificates
|
||||||
ca-certificates \
|
RUN apk add --no-cache ffmpeg
|
||||||
ffmpeg \
|
RUN apk add --no-cache curl
|
||||||
curl \
|
RUN apk add --no-cache python3
|
||||||
python3 \
|
RUN apk add --no-cache py3-pip
|
||||||
py3-pip \
|
RUN apk add --no-cache supervisor
|
||||||
supervisor \
|
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
|
||||||
&& 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
|
&& chmod a+rx /usr/local/bin/yt-dlp
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module kvtube-go
|
module kvtube-go
|
||||||
|
|
||||||
go 1.25.0
|
go 1.24.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gin-gonic/gin v1.11.0
|
github.com/gin-gonic/gin v1.11.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue