CoolFace
Apppublic

raghulikes2code/reaction_kinetics_module

sourceHugging Facemitupdated 3mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1FROM python:3.11-slim2WORKDIR /code3 4# Install build dependencies5RUN apt-get update && apt-get install -y --no-install-recommends \    6    build-essential \    7    && rm -rf /var/lib/apt/lists/*8 9# Copy requirements and install globally10COPY ./requirements.txt /code/requirements.txt11RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt12 13# Set up a secure user environment matching Hugging Face guidelines14RUN useradd -m -u 1000 user15USER user16ENV HOME=/home/user \    17    PATH=/home/user/.local/bin:$PATH18 19# Set the working directory inside the user's home space20WORKDIR $HOME/app21 22# Copy all files over23COPY --chown=user . $HOME/app24 25# Serve the standalone app script26# Serve the standalone app script with Hugging Face proxy configurations27CMD ["bokeh", "serve", "app.py", "--port", "7860", "--address", "0.0.0.0", "--allow-websocket-origin=*", "--use-xheaders"]