Files
media_crawler/Dockerfile
renjue 82581d2949 Implement full media crawler workflow with Flask backend and Vue frontend.
Add TMDB search and media detail pages, HDHive resource ingestion flow, unified error handling, Docker single-container runtime, and project docs/config updates for local deployment.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 16:16:18 +08:00

31 lines
771 B
Docker

FROM node:20-bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-pip ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install backend dependencies.
COPY backend/requirements.txt /app/backend/requirements.txt
RUN python3 -m pip install --no-cache-dir -r /app/backend/requirements.txt
# Install frontend dependencies and build.
COPY frontend/package*.json /app/frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend /app/frontend
RUN npm run build
# Copy backend source and runtime launcher.
WORKDIR /app
COPY backend /app/backend
COPY docker/start.sh /app/docker/start.sh
RUN chmod +x /app/docker/start.sh
EXPOSE 14620 14621
CMD ["/app/docker/start.sh"]