-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (33 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
43 lines (33 loc) · 1.15 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
37
38
39
40
41
42
43
# Multi-stage build for BeCoin EcoSim Dashboard
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy Python dependencies
COPY dashboard/requirements.txt /app/requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY becoin_economy/ /app/becoin_economy/
COPY dashboard/ /app/dashboard/
COPY scripts/ /app/scripts/
# Create directory for discovery sessions (optional, can be overridden by volume mount)
RUN mkdir -p /app/.claude-flow/discovery-sessions
# Set Python path to include /app
ENV PYTHONPATH=/app \
PYTHONUNBUFFERED=1 \
PORT=3000 \
HOST=0.0.0.0 \
AUTH_USERNAME="" \
AUTH_PASSWORD=""
# Expose port for FastAPI
EXPOSE 3000
# Health check with longer startup period
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:3000/api/status || exit 1
# Run the FastAPI server
CMD ["uvicorn", "dashboard.server:app", "--host", "0.0.0.0", "--port", "3000"]