Docker changed

This commit is contained in:
Akil 2025-06-27 15:16:34 +03:00
parent 7eb3d18064
commit 5b32a9b3dc

View File

@ -5,7 +5,7 @@ FROM python:3.9-slim
ENV GROQ_API_KEY "add your GROQ API key here" ENV GROQ_API_KEY "add your GROQ API key here"
# Set work directory # Set work directory
WORKDIR /app WORKDIR ./
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
@ -14,13 +14,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy requirements file # Copy requirements file
COPY ./app/requirements.txt . COPY ./requirements.txt .
# Install Python dependencies # Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Copy project # Copy project
COPY ./app /app COPY ./ /app
# Expose the port the app runs on # Expose the port the app runs on
EXPOSE 8000 EXPOSE 8000