EngrNarmeen commited on
Commit
5a2afa2
·
verified ·
1 Parent(s): 0f7414c

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +35 -0
dockerfile CHANGED
@@ -1 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  RUN python -m nltk.downloader punkt
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install necessary dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ git-lfs \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ cmake \
11
+ rsync \
12
+ libgl1-mesa-glx \
13
+ && rm -rf /var/lib/apt/lists/* \
14
+ && git lfs install
15
+
16
+ # Set up working directory
17
+ WORKDIR /home/user/app
18
+
19
+ # Copy the application files into the container
20
+ COPY . /home/user/app
21
+
22
+ # Install Python dependencies
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ # Download NLTK punkt resource
26
  RUN python -m nltk.downloader punkt
27
+
28
+ # Set the environment variable for the Groq API key
29
+ ENV GROQ_API_KEY="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"
30
+
31
+ # Expose the port for the Streamlit app
32
+ EXPOSE 8501
33
+
34
+ # Command to run the app
35
+ CMD ["streamlit", "run", "app.py"]
36
+