File size: 1,267 Bytes
75309ed
 
 
 
a84f5dc
75309ed
769758a
 
 
f344832
41b881e
 
de65d7b
75309ed
 
 
 
 
 
 
 
346def9
2e6fa65
a84f5dc
 
 
 
 
 
346def9
41b881e
26fab0f
75309ed
 
 
 
 
 
 
 
 
 
 
 
 
f344832
a84f5dc
75309ed
 
 
 
 
 
 
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
44
45
46
47
48
49
50
51
52
53
54
# Dockerfile for Jar3d
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# # Set environment variables
# ENV HOME=/app \
#     PATH=/app/.local/bin:$PATH

USER root
RUN chmod -R 777 /app

# Install minimal required build tools and dependencies for Playwright
RUN apt-get update && apt-get install -y \
    gcc \
    g++ \
    python3-dev \
    wget \
    gnupg \
    && rm -rf /var/lib/apt/lists/*

# Change to user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
    # FOR HUGGINGFACE

#
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Install Playwright and its dependencies
# RUN playwright install-deps
# RUN playwright install chromium firefox webkit

# Copy the rest of the application
COPY . .

# Ensure the config file is copied to the correct location
# COPY config/config.yaml /app/config/config.yaml
# COPY config/config.yaml /config/config.yaml
# COPY agent_memory/jar3d_final_response_previous_run.txt /app/agent_memory/jar3d_final_response_previous_run.txt


# Expose the port Chainlit runs on
EXPOSE 8000

# Command to run the application
CMD ["chainlit", "run", "chat.py", "--port", "8000"]