diff --git a/Dockerfile b/Dockerfile index 5d5e1d6..e531f4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,24 +3,29 @@ FROM python:3.9-slim # Set environment variables ENV GROQ_API_KEY "add your GROQ API key here" -# ENV VIRTUAL_ENV=/opt/venv -# ENV PATH="$VIRTUAL_ENV/bin:$PATH" +ENV VIRTUAL_ENV="/opt/venv" +ENV PATH="$VIRTUAL_ENV/bin:$PATH" # Set work directory WORKDIR /app # Install system dependencies -RUN apt-get update && apt-get install -y --no-install-recommends \ - gcc \ - python3-dev \ - && rm -rf /var/lib/apt/lists/* +# RUN apt-get update && apt-get install -y --no-install-recommends \ +# gcc \ +# python3-dev \ +# && rm -rf /var/lib/apt/lists/* -# Create and activate virtual environment -# RUN python -m venv $VIRTUAL_ENV +# Install system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + && rm -rf /var/lib/apt/lists/* # Copy requirements file COPY requirements.txt . +# Create and activate virtual environment +RUN python -m venv $VIRTUAL_ENV + # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt