revert: remove torrent streaming feature
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.25-bookworm AS builder
|
||||
FROM golang:1.24-bullseye AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -10,24 +10,16 @@ RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
# Generate templ templates
|
||||
RUN go run github.com/a-h/templ/cmd/templ@latest generate
|
||||
|
||||
# Build the server and the CLI tools
|
||||
RUN go build -o main_server ./cmd/server
|
||||
RUN go build -o create_user ./cmd/create-user
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install ffmpeg, sqlite and ca-certificates
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
ca-certificates \
|
||||
sqlite3 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# Required for sqlite
|
||||
RUN apt-get update && apt-get install -y ca-certificates sqlite3 && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create data directory for sqlite
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
Reference in New Issue
Block a user