-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 954 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (30 loc) · 954 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
# Use official Python image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_ROOT_USER_ACTION=ignore
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:$PATH"
# Install Node.js and npx
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
npm install -g npx
# Set working directory
WORKDIR /app
# Copy project files
COPY ./ ./
# Install Python dependencies with Poetry
RUN poetry install --no-root --no-dev
# Expose the Streamlit default port
EXPOSE 8501
# Run the Streamlit app
ENTRYPOINT ["streamlit", "run", "llama_mcp_streamlit/main.py", "--server.port=8501", "--server.address=0.0.0.0"]