Compare commits
No commits in common. "bdfd537c6ef3a79c2388984f87f19fd3e523ed69" and "729c5440ad1667eb7b828e29fce9854786dee6cd" have entirely different histories.
bdfd537c6e
...
729c5440ad
2 changed files with 10 additions and 11 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,10 +1,8 @@
|
||||||
# ---- 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 .
|
||||||
|
|
@ -28,14 +26,15 @@ 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 nodejs
|
RUN apk add --no-cache \
|
||||||
RUN apk add --no-cache ca-certificates
|
nodejs \
|
||||||
RUN apk add --no-cache ffmpeg
|
ca-certificates \
|
||||||
RUN apk add --no-cache curl
|
ffmpeg \
|
||||||
RUN apk add --no-cache python3
|
curl \
|
||||||
RUN apk add --no-cache py3-pip
|
python3 \
|
||||||
RUN apk add --no-cache supervisor
|
py3-pip \
|
||||||
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
|
supervisor \
|
||||||
|
&& 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.24.0
|
go 1.25.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