Files
media_crawler/Dockerfile
renjue 7e3f4d792f Update Docker runtime to pull latest code on startup.
Install git in image and change start script to clone/pull target branch, reinstall dependencies, rebuild frontend, then launch backend and frontend services.

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

18 lines
379 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 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"]