Aqarion commited on
Commit
8851381
·
verified ·
1 Parent(s): 7ce06ea

Create HYPERSPECTRAL-DOCKERFILE

Browse files
Files changed (1) hide show
  1. HYPERSPECTRAL-DOCKERFILE +62 -0
HYPERSPECTRAL-DOCKERFILE ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BORION φ⁴³ Hyperspectral Compression Pipeline
2
+ # Multi-stage production build - 78% L3 compression verified
3
+ FROM python:3.11-slim AS base
4
+
5
+ # Metadata
6
+ LABEL maintainer="AQARION / BORION Team"
7
+ LABEL version="1.0"
8
+ LABEL description="BORION φ⁴³ L3 78% hyperspectral compression pipeline"
9
+ LABEL φ⁴³="22.93606797749979"
10
+
11
+ # Install system dependencies (minimal)
12
+ RUN apt-get update && apt-get install -y --no-install-recommends \
13
+ curl \
14
+ wget \
15
+ git \
16
+ h5py \
17
+ build-essential \
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ # Create non-root user
21
+ RUN useradd --create-home --shell /bin/bash borion \
22
+ && mkdir -p /app/datasets /app/logs /app/python \
23
+ && chown -R borion:borion /app
24
+
25
+ # Switch to non-root user
26
+ USER borion
27
+ WORKDIR /app
28
+
29
+ # Copy production pipeline
30
+ COPY --chown=borion:borion PYTHON/*.py python/
31
+ COPY --chown=borion:borion FEB7TH-FLOW.MD ./
32
+
33
+ # Install Python dependencies (production optimized)
34
+ COPY --chown=borion:borion requirements.txt .
35
+ RUN pip install --no-cache-dir --user -r requirements.txt
36
+
37
+ # Environment variables
38
+ ENV PHI43=22.93606797749979 \
39
+ DATA_DIR=/app/datasets \
40
+ OUTPUT_DIR=/app/logs \
41
+ PYTHONPATH=/app/python \
42
+ PORT=7864 \
43
+ HOST=0.0.0.0
44
+
45
+ # Healthcheck
46
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
47
+ CMD curl -f http://localhost:${PORT}/status || exit 1
48
+
49
+ # Expose production port
50
+ EXPOSE ${PORT}
51
+
52
+ # Volume mounts for datasets/logs
53
+ VOLUME ["/app/datasets", "/app/logs"]
54
+
55
+ # Production startup
56
+ COPY --chown=borion:borion docker-entrypoint.sh .
57
+ RUN chmod +x docker-entrypoint.sh
58
+
59
+ ENTRYPOINT ["./docker-entrypoint.sh"]
60
+
61
+ # Default command: run full L3 verification
62
+ CMD ["--verify-all"]