0% found this document useful (0 votes)
4 views1 page

Python Flask App with OpenCV Setup

This document is a Dockerfile that sets up a base image with Python 3.11-slim. It installs necessary system dependencies for OpenCV, copies application code, installs Python dependencies from a requirements file, exposes port 8080, and specifies the command to start a Flask application using 'verify_face.py'.

Uploaded by

githouse36
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Flask App with OpenCV Setup

This document is a Dockerfile that sets up a base image with Python 3.11-slim. It installs necessary system dependencies for OpenCV, copies application code, installs Python dependencies from a requirements file, exposes port 8080, and specifies the command to start a Flask application using 'verify_face.py'.

Uploaded by

githouse36
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# Base image with Python

FROM python:3.11-slim

# Install system dependencies for OpenCV


RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*

# Set working directory


WORKDIR /app

# Copy your code


COPY . /app

# Install Python dependencies


RUN pip install --no-cache-dir -r [Link]

# Expose port
EXPOSE 8080

# Start the Flask app


CMD ["python", "verify_face.py"]

You might also like