-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (20 loc) · 866 Bytes
/
Dockerfile
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
# # Dockerfile, Image Container
# FROM python:3.11
# ADD app.py .
# RUN pip install streamlit python-dotenv google.generativeai
# CMD ["streamlit", "run", "./app.py"]
# Use an official Python runtime as a parent image
FROM python:3.11
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
# Note: The package 'google-generativeai' should be correctly named if available on PyPI, or else handled separately.
RUN pip install --no-cache-dir streamlit python-dotenv langchain PyPDF2 chromadb faiss-cpu pdf2image google.generativeai
# Make port 8501 available to the world outside this container
EXPOSE 8501
# Define environment variable for Streamlit
ENV NAME World
# Command to run the app
CMD ["streamlit", "run", "app.py"]