RFP-API / Dockerfile
chouchouvs's picture
Update Dockerfile
7a796bc verified
raw
history blame
594 Bytes
# ---- Dockerfile (runtime-clone pattern)
FROM python:3.10-slim
# System deps
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
rm -rf /var/lib/apt/lists/*
# A writable workspace for the runtime clone
ENV WORKSPACE=/workspace
RUN mkdir -p ${WORKSPACE}
WORKDIR ${WORKSPACE}
# Keep pip quiet + no cache
ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
# Entrypoint script
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# FastAPI runner
EXPOSE 7860
CMD ["/usr/local/bin/entrypoint.sh"]