Docker changed
This commit is contained in:
parent
c0acdb9e94
commit
853cae84dc
21
Dockerfile
21
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user