FROM node:22-bookworm ENV DEBIAN_FRONTEND=noninteractive # Install required packages RUN apt-get update && \ apt-get install -y git curl wget && \ rm -rf /var/lib/apt/lists/* WORKDIR /app # Clone the target repository RUN git clone https://huggingface.co/datasets/T3chbitforge/apinow . # Debug RUN echo "PWD:" && pwd && \ echo "FILES:" && ls -lah # If config.json is included in THIS Space repository, # uncomment the next line. # COPY config.json /app/config.json # Install dependencies RUN npm install ENV PORT=7860 EXPOSE 7860 CMD ["sh", "-c", "echo 'PWD:' && pwd && echo 'FILES:' && ls -lah && npm run dev -- -p ${PORT}"]