Initial AI media hub implementation
Some checks failed
build-push / docker (push) Has been cancelled
Some checks failed
build-push / docker (push) Has been cancelled
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM golang:1.24-bookworm AS go-builder
|
||||
WORKDIR /src
|
||||
COPY go.mod ./
|
||||
RUN go mod download
|
||||
COPY backend ./backend
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/ai-media-hub ./backend
|
||||
|
||||
FROM python:3.12-slim-bookworm
|
||||
ENV APP_ROOT=/app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ffmpeg ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY worker/requirements.txt /app/worker/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/worker/requirements.txt
|
||||
|
||||
COPY --from=go-builder /out/ai-media-hub /app/ai-media-hub
|
||||
COPY backend /app/backend
|
||||
COPY worker /app/worker
|
||||
COPY frontend /app/frontend
|
||||
COPY db /app/db
|
||||
COPY downloads /app/downloads
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/app/ai-media-hub"]
|
||||
Reference in New Issue
Block a user