Files
media_crawler/Dockerfile
renjue 3ed3d34900 Speed up Docker apt install with configurable mirror.
Add APT_MIRROR build arg to switch Debian source before apt-get update, and document faster build command using BuildKit and host network.

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

21 lines
538 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 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"]