From 0cf83eb9d682929230d01e57cfd81fc54183d8ae Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 28 Oct 2026 21:44:34 -0700 Subject: [PATCH] dockerfile - move api up in order --- Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index fdce03d..fa45aba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Clean up && rm -rf /var/lib/apt/lists/* -# ------------------------------------------------------------- +# API on 5000 +RUN mkdir -p /opt/Fitness +RUN python3 -m venv /opt/Fitness/venv +COPY api/requirements.txt /opt/Fitness/ +RUN /opt/Fitness/venv/bin/pip3 install --no-cache-dir -r /opt/Fitness/requirements.txt +# Copy the actual app code after installing deps +COPY api/ /opt/Fitness/ + # Install Composer (stand‑alone) -# ------------------------------------------------------------- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Apache on 8069 @@ -32,14 +38,6 @@ WORKDIR /var/www/html/ RUN composer require jumbojett/openid-connect-php RUN composer install --no-dev --optimize-autoloader --no-interaction -# API on 5000 -RUN mkdir -p /opt/Fitness -RUN python3 -m venv /opt/Fitness/venv -COPY api/requirements.txt /opt/Fitness/ -RUN /opt/Fitness/venv/bin/pip3 install --no-cache-dir -r /opt/Fitness/requirements.txt -# Copy the actual app code after installing deps -COPY api/ /opt/Fitness/ - # Add supervisord configuration COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf