Spaces:
Running
Running
Update Dockerfile
Browse files1234567891011121314151617181920FROM calciumion/new-api:v1.0.0-rc.10# Install Python minimal + pip (no build-essential thanks to --no-install-recommends)# python3-requests via apt avoids pip compiling it; aiosmtpd is pure PythonRUN apt-get update -qq && \apt-get install -y -qq --no-install-recommends python3 python3-pip python3-requests ca-certificates && \pip3 install --no-cache-dir --break-system-packages aiosmtpd && \rm -rf /var/lib/apt/lists/* /root/.cache/pip/*COPY smtp-proxy.py /app/smtp-proxy.pyCOPY start.sh /app/start.shRUN chmod +x /app/start.shENV PORT=7860EXPOSE 7860RUN mkdir -p /dataWORKDIR /dataENTRYPOINT ["/app/start.sh"]12345678FROM calciumion/new-api:v1.0.0-rc.10# Hugging Face Spaces requires port 7860ENV PORT=7860EXPOSE 7860RUN mkdir -p /dataWORKDIR /data
Dockerfile+1-13