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
|
# Set environment variables
|
||||||
ENV GROQ_API_KEY "add your GROQ API key here"
|
ENV GROQ_API_KEY "add your GROQ API key here"
|
||||||
# ENV VIRTUAL_ENV=/opt/venv
|
ENV VIRTUAL_ENV="/opt/venv"
|
||||||
# ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
# Set work directory
|
# Set work directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# 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 \
|
||||||
gcc \
|
# gcc \
|
||||||
python3-dev \
|
# python3-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
# && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create and activate virtual environment
|
# Install system dependencies
|
||||||
# RUN python -m venv $VIRTUAL_ENV
|
RUN apt-get update && apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy requirements file
|
# Copy requirements file
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Create and activate virtual environment
|
||||||
|
RUN python -m venv $VIRTUAL_ENV
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user