JarvisChan630 commited on
Commit
a84f5dc
1 Parent(s): 769758a
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,15 +1,8 @@
1
  # Dockerfile for Jar3d
2
  FROM python:3.11-slim
3
 
4
- RUN useradd -m -u 1000 user
5
- USER user
6
- ENV HOME=/home/user \
7
- PATH=/home/user/.local/bin:$PATH
8
- WORKDIR $HOME/app
9
- COPY --chown=user . $HOME/app
10
-
11
  # Set working directory
12
- # WORKDIR /app
13
 
14
  # # Set environment variables
15
  # ENV HOME=/app \
@@ -24,6 +17,12 @@ RUN apt-get update && apt-get install -y \
24
  gnupg \
25
  && rm -rf /var/lib/apt/lists/*
26
 
 
 
 
 
 
 
27
  # FOR HUGGINGFACE
28
  RUN chmod -R 777 /app
29
  #
@@ -41,7 +40,8 @@ COPY . .
41
  # Ensure the config file is copied to the correct location
42
  # COPY config/config.yaml /app/config/config.yaml
43
  # COPY config/config.yaml /config/config.yaml
44
- COPY agent_memory/jar3d_final_response_previous_run.txt /app/agent_memory/jar3d_final_response_previous_run.txt
 
45
 
46
 
47
  # Expose the port Chainlit runs on
 
1
  # Dockerfile for Jar3d
2
  FROM python:3.11-slim
3
 
 
 
 
 
 
 
 
4
  # Set working directory
5
+ WORKDIR /app
6
 
7
  # # Set environment variables
8
  # ENV HOME=/app \
 
17
  gnupg \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ RUN useradd -m -u 1000 user
21
+ USER user
22
+ ENV HOME=/home/user \
23
+ PATH=/home/user/.local/bin:$PATH
24
+ WORKDIR $HOME/app
25
+ COPY --chown=user . $HOME/app
26
  # FOR HUGGINGFACE
27
  RUN chmod -R 777 /app
28
  #
 
40
  # Ensure the config file is copied to the correct location
41
  # COPY config/config.yaml /app/config/config.yaml
42
  # COPY config/config.yaml /config/config.yaml
43
+ # COPY agent_memory/jar3d_final_response_previous_run.txt /app/agent_memory/jar3d_final_response_previous_run.txt
44
+ COPY agent_memory/jar3d_final_response_previous_run.txt /home/user/app/agent_memory/jar3d_final_response_previous_run.txt
45
 
46
 
47
  # Expose the port Chainlit runs on