-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 1.02 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (27 loc) · 1.02 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
# Helix Collective v14.5 - Quantum Handshake
# Dockerfile - Railway Deployment Configuration
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (for layer caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create required directories
RUN mkdir -p Helix/state Helix/commands Helix/ethics Shadow/manus_archive
# Create default state files
RUN echo '{"zoom":1.0228,"harmony":0.355,"resilience":1.1191,"prana":0.5175,"drishti":0.5023,"klesha":0.010}' > Helix/state/ucf_state.json
RUN echo '{"timestamp":"init","status":"starting"}' > Helix/state/heartbeat.json
RUN echo '{}' > Helix/commands/manus_directives.json
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Expose port (Railway will override with $PORT)
EXPOSE 8000
# Run the application
CMD ["python", "backend/main.py"]