CoolFace
Apppublic

Airmanv/NFL3.1

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1FROM python:3.102 3# Create the user4RUN useradd -m -u 1000 user5USER user6 7# Set environment variables so nfl_data_py knows where to write8ENV HOME=/home/user \9	PATH=/home/user/.local/bin:$PATH \10    XDG_CACHE_HOME=/home/user/.cache11 12WORKDIR $HOME/app13 14# Create the cache directory explicitly and give full permissions15RUN mkdir -p $HOME/.cache/nfl_data_py && chmod -R 777 $HOME/.cache16 17COPY --chown=user . $HOME/app18 19RUN pip install --no-cache-dir --upgrade pip && \20    pip install --no-cache-dir -r requirements.txt21 22CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0", "--server.port", "7860"]