forked from Dicklesworthstone/swiss_army_llama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 827 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Use Python 3.9 image
FROM python:3.9-buster
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install system dependencies, including sudo
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
libmagic1 \
sudo && \
rm -rf /var/lib/apt/lists/*
# Upgrade pip and install wheel
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install wheel
# Copy the requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the .env file
COPY .env .
# Copy the rest of the application
COPY . .
# Expose the port the app runs on
EXPOSE 8089
# Command to run the application
CMD ["python3", "llama_2_embeddings_fastapi_server.py"]