-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 869 Bytes
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 869 Bytes
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
33
34
35
36
37
38
39
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install uv package manager
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
# Copy project files
COPY pyproject.toml ./
COPY image_to_embedding.py ./
COPY video_to_embedding.py ./
COPY search_images.py ./
COPY search_videos.py ./
COPY app.py ./
COPY video_embeddings/ ./video_embeddings/
COPY README.md ./
# Install dependencies
RUN /root/.local/bin/uv sync
# Expose Streamlit port
EXPOSE 8501
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
# Run streamlit app
CMD ["uv", "run", "streamlit", "run", "app.py", "--server.address", "0.0.0.0"]