-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 1.05 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (26 loc) · 1.05 KB
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
FROM python:3.11-slim
LABEL maintainer="Narayana Reddy"
LABEL description="DevOps MCP Toolkit — 15 MCP servers + Streamlit dashboard"
LABEL version="2.1.0"
WORKDIR /app
# Install system deps (kubectl, helm, terraform, trivy)
RUN apt-get update && apt-get install -y --no-install-recommends \
curl ca-certificates gnupg unzip git && \
rm -rf /var/lib/apt/lists/*
# kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x kubectl && mv kubectl /usr/local/bin/
# helm
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# Copy project files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY servers/ ./servers/
COPY streamlit_app/ ./streamlit_app/
COPY terraform/ ./terraform/
COPY k8s/ ./k8s/
# Expose Streamlit port
EXPOSE 8501
ENV PYTHONUNBUFFERED=1
CMD ["python3", "-m", "streamlit", "run", "streamlit_app/app.py", \
"--server.port=8501", "--server.address=0.0.0.0", "--server.headless=true"]