dockerfile - move api up in order
This commit is contained in:
1 parent
addf70b7bb
commit
0cf83eb9d6
1 file changed
+8
-10
+8
-10
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user