Files
media_crawler/Dockerfile
renjue ddbd79b951 Fix Docker startup install for externally managed Python environment.
Install python3-venv and move backend dependency installation/runtime to a dedicated venv to avoid PEP 668 pip errors inside Debian-based container.

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

21 lines
551 B
Docker

FROM node:20-bookworm-slim
ARG APT_MIRROR=mirrors.aliyun.com
ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i "s|deb.debian.org|${APT_MIRROR}|g; s|security.debian.org|${APT_MIRROR}|g" /etc/apt/sources.list.d/debian.sources
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-pip python3-venv ca-certificates git \
&& rm -rf /var/lib/apt/lists/*
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"]