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 ----
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module kvtube-go
|
||||
|
||||
go 1.25.0
|
||||
go 1.24.0
|
||||
|
||||
require (
|
||||
github.com/gin-gonic/gin v1.11.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue