CoolFace
Apppublic

NavyDevilDoc/EDQP_Acronyms

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Use a lightweight Python base image2FROM python:3.9-slim3 4# Set working directory5WORKDIR /app6 7# Create a non-root user (Security best practice & required by some HF environments)8RUN useradd -m -u 1000 user9USER user10ENV PATH="/home/user/.local/bin:$PATH"11 12# Copy requirements first to leverage Docker cache13COPY --chown=user requirements.txt requirements.txt14 15# Install dependencies16RUN pip install --no-cache-dir --upgrade pip && \17    pip install --no-cache-dir -r requirements.txt18 19# Copy the rest of the application files20COPY --chown=user app.py app.py21COPY --chown=user navy_acronyms_clean.json navy_acronyms_clean.json22 23# Expose the port Hugging Face expects24EXPOSE 786025 26# Run Streamlit on Port 786027CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]