File size: 949 Bytes
1e0b4e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc444bb
 
 
1e0b4e7
 
 
 
 
 
 
a24bbc4
1e0b4e7
9ebcbf0
1e0b4e7
d5b9dc7
1e0b4e7
 
d5b9dc7
94d9c1e
 
1e0b4e7
 
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
37
38
39
40
41
42
43
FROM python:3.10-slim-buster

# Set the working directory
WORKDIR /app

# Copy requirements file
COPY requirements.txt requirements.txt

# Create a virtual environment
RUN python -m venv venv

# Set the PATH to use the virtual environment
ENV PATH="/app/venv/bin:$PATH"

# Update package list and install necessary packages in a single step
RUN apt-get update && apt-get install -y \
    curl \
    build-essential \
    libffi-dev \
    cmake \
    libcurl4-openssl-dev \
    tini \
    systemd && \
    apt-get clean

# Upgrade pip and install dependencies
RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Install additional software
RUN curl -fsSL https://ollama.com/install.sh | sh

RUN  ollama serve
# Copy the entire application
COPY . .

# Set proper permissions for the translations directory
RUN chmod -R 777 translations


# Define the command to run the application
CMD ["python", "./run.py"]