CoolFace
Apppublic

Alasil/Tracking

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1FROM docker.io/library/python:3.13.5-slim@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e309874192 3# Install build dependencies and Git.4RUN apt-get update && apt-get install -y \5    build-essential \6    curl \7    git \8    && rm -rf /var/lib/apt/lists/*9 10# Set the working directory inside the container.11WORKDIR /app12 13# Create the .streamlit directory and copy the secrets.toml file from the host.14# This approach avoids permission issues and ensures the folder exists.15RUN mkdir /.streamlit16 17# Copy the Streamlit configuration files directly into the created directory.18COPY requirements.txt .19COPY src/app.py src/20COPY .streamlit/secrets.toml /.streamlit/secrets.toml21COPY .streamlit/config.toml /.streamlit/config.toml22 23# Install Python dependencies.24RUN pip install -r requirements.txt25 26# Expose port 8501 for Streamlit.27EXPOSE 850128 29# The command to run the Streamlit application.30CMD ["streamlit", "run", "src/app.py"]31