Skill-assessment / Dockerfile
Muhammad541's picture
Update Dockerfile
f3fc06a verified
raw
history blame
745 Bytes
# Use an official Python runtime as the base image
FROM python:3.11-slim
# Set working directory inside the container
WORKDIR /app
# Copy requirements.txt to the working directory
COPY requirements.txt .
# Install system dependencies (for faiss, torch, etc.)
RUN apt-get update && apt-get install -y \
build-essential \
libatlas-base-dev \
gfortran \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application code and datasets to the container
COPY . .
# Ensure the container runs as root (temporary for debugging)
USER root
# Expose the port your Flask app will run on
EXPOSE 7860
# Command to run the Flask app
CMD ["python", "app.py"]