CoolFace
Apppublic

Lokesh020/QA_Summary_tool_encoder_decoder

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile45 linesDownload Raw Back to root
1 2# Use an official Python runtime as a parent image3FROM python:3.10-slim4 5 6# Set environment variables7ENV PYTHONUNBUFFERED 18 9 10# Install system dependencies and git11RUN apt-get update && apt-get install -y \12    build-essential \13    git \14    && rm -rf /var/lib/apt/lists/*15 16 17 18 19# Create a non-root user and set permissions20RUN useradd -ms /bin/bash appuser21# Set the working directory in the container22WORKDIR /home/appuser/app23 24 25# Copy the requirements file and install dependencies26COPY requirements.txt .27RUN pip install --upgrade pip && pip install -r requirements.txt28 29 30# Switch to non-root user31USER appuser32 33 34# Copy the rest of the application code into the container35COPY --chown=appuser . /home/appuser/app36 37 38# Expose the port that the app runs on39EXPOSE 850140 41 42# Command to run the application43CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]44 45