Sujal Bhat commited on
Commit
803e0db
1 Parent(s): 8744923

Updated Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -1
  2. deliverables/Tasks2.md +14 -0
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
@@ -7,4 +7,13 @@ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
 
 
 
 
 
 
 
 
 
10
  CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
 
7
 
8
  COPY . .
9
 
10
+ # Create a non-root user
11
+ RUN useradd -m chainlit_user
12
+
13
+ # Change ownership of the /app directory
14
+ RUN chown -R chainlit_user:chainlit_user /app
15
+
16
+ # Switch to the non-root user
17
+ USER chainlit_user
18
+
19
  CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
deliverables/Tasks2.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Task 2: Building a Quick End-to-End Prototype
2
+
3
+ **You are an AI Systems Engineer**. The SVP of Technology has tasked you with spinning up a quick RAG prototype for answering questions that internal stakeholders have about AI, using the data provided in Task 1.
4
+
5
+
6
+ Task 2: Build an end-to-end RAG application using an industry-standard open-source stack and your choice of commercial off-the-shelf models
7
+
8
+
9
+
10
+ ✅ Deliverables:
11
+
12
+ 1. Build a prototype and deploy to a Hugging Face Space, and create a short (< 2 min) loom video demonstrating some initial testing inputs and outputs.
13
+
14
+ 2. How did you choose your stack, and why did you select each tool the way you did?