Team Ai
Apppublic

hereisSwapnil/Transcript-Sentiment-Analysis

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.12-slim3 4# Create a user with a home directory (Non-root user for security)5RUN useradd -m -u 1000 user6USER user7ENV PATH="/home/user/.local/bin:$PATH"8 9# Set the working directory to /app10WORKDIR /app11 12# Copy the requirements.txt file and install dependencies13COPY --chown=user ./requirements.txt /app/requirements.txt14RUN pip install --no-cache-dir --upgrade -r requirements.txt15 16# Copy the rest of the application code17COPY --chown=user . /app18 19# Install Gunicorn for production20RUN pip install gunicorn21 22# Expose the port on which the app will run23EXPOSE 500024 25# Command to run the Flask app via Gunicorn in production26CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "main:app"]27