leedoming commited on
Commit
6ae0afe
1 Parent(s): ce5a299

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+ FROM python:3.11-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ software-properties-common \
9
+ git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set working directory
13
+ WORKDIR /app
14
+
15
+ # Copy requirements file
16
+ COPY requirements.txt .
17
+
18
+ # Install Python dependencies
19
+ RUN pip3 install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy application code
22
+ COPY . .
23
+
24
+ # Create directory for ChromaDB
25
+ RUN mkdir -p ./fashion_multimodal_db
26
+
27
+ # Expose port for Streamlit
28
+ EXPOSE 8501
29
+
30
+ # Set environment variables
31
+ ENV PYTHONUNBUFFERED=1
32
+ ENV STREAMLIT_SERVER_PORT=8501
33
+ ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
34
+
35
+ # Command to run the application
36
+ CMD ["streamlit", "run", "app.py"]