resume-parser / Dockerfile
klakenyuo's picture
upload fix
ec60aa3
Raw
History Blame Contribute Delete
462 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install streamlit
COPY . .
# Création du répertoire .streamlit s'il n'existe pas
RUN mkdir -p .streamlit
EXPOSE 7860
# Configuration pour Hugging Face Spaces
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_SERVER_ENABLE_CORS=false
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
CMD ["streamlit", "run", "main.py"]