RFP-API / Dockerfile
chouchouvs's picture
Update Dockerfile
2567d5f verified
raw
history blame
490 Bytes
# ---- Dockerfile
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Writable workspace on HF Spaces
ENV WORKSPACE=/home/user/workspace
RUN mkdir -p ${WORKSPACE}
WORKDIR ${WORKSPACE}
ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 7860
CMD ["/usr/local/bin/entrypoint.sh"]