cosmostat has working drive health dashboard
This commit is contained in:
@ -6,10 +6,12 @@ FROM php:8.1-apache
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# Services
|
||||
redis-server nginx \
|
||||
# Python
|
||||
python3 python3-venv python3-pip \
|
||||
# Process supervisor
|
||||
supervisor \
|
||||
# Others
|
||||
net-tools \
|
||||
net-tools curl \
|
||||
# Clean up
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -36,6 +38,14 @@ COPY web/html/ /var/www/html/
|
||||
RUN rm -rf /etc/nginx/sites-enabled/default
|
||||
COPY web/proxy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# DriveHealth on 5001
|
||||
RUN mkdir -p /opt/DriveHealth
|
||||
RUN python3 -m venv /opt/DriveHealth/venv
|
||||
COPY apis/StorageSummary/requirements.txt /opt/DriveHealth/
|
||||
RUN /opt/DriveHealth/venv/bin/pip3 install --no-cache-dir -r /opt/DriveHealth/requirements.txt
|
||||
# Copy the actual app code after installing deps
|
||||
COPY apis/StorageSummary/ /opt/DriveHealth/
|
||||
|
||||
# Add supervisord configuration
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user