# Use the official Python image from the Docker Hub
FROM python:3.10.12

# Set environment variables to ensure Python output is logged
ENV PYTHONUNBUFFERED=1

# Set the working directory in the container
WORKDIR /app

# Copy the existing virtual environment into the container
COPY signpe_env /app/signpe_env

# Copy the rest of your application code into the container
COPY signpe_project /app/signpe_project

# Set the PATH environment variable to include the virtual environment
ENV PATH="/app/signpe_env/bin:$PATH"

# Define the command to run your application
CMD ["python", "signpe_project/app.py"]
