Loading Dockerfile +3 −15 Original line number Original line Diff line number Diff line Loading @@ -22,11 +22,7 @@ ######################################################### ######################################################### FROM python:3.12 FROM python:3.12 # Set working directory WORKDIR /usr/app WORKDIR /usr/app # Install system dependencies RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \ bash \ bash \ build-essential \ build-essential \ Loading @@ -36,20 +32,12 @@ RUN apt-get update && apt-get install -y \ libcurl4-openssl-dev \ libcurl4-openssl-dev \ libssl-dev \ libssl-dev \ && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/* # Copy application code # Copy application code COPY . . COPY . . ARG PIP_TF_SDK_INDEX_URL ARG PIP_INDEX_URL ARG PIP_EXTRA_INDEX_URL # Install Python dependencies # Install Python dependencies RUN python -m pip install --no-cache-dir -r requirements.txt --extra-index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} --trusted-host gitlab.i2cat.net RUN python -m pip install --no-cache-dir -r requirements.txt --extra-index-url ${PIP_TF_SDK_INDEX_URL} --trusted-host gitlab.i2cat.net # Set working directory for application execution WORKDIR /usr/app/src/ WORKDIR /usr/app/src/ # Expose application port EXPOSE 8989 EXPOSE 8989 # Set Gunicorn as the entrypoint # Set Gunicorn as the entrypoint ENTRYPOINT ["gunicorn", "wsgi:app", "--bind", "0.0.0.0:8989", "--workers", "4", "--log-level", "debug", "--timeout", "1000"] ENTRYPOINT ["gunicorn", "wsgi:app", "--bind", "0.0.0.0:8989", "--workers", "4", "--log-level", "debug", "--timeout", "1000"] Loading
Dockerfile +3 −15 Original line number Original line Diff line number Diff line Loading @@ -22,11 +22,7 @@ ######################################################### ######################################################### FROM python:3.12 FROM python:3.12 # Set working directory WORKDIR /usr/app WORKDIR /usr/app # Install system dependencies RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \ bash \ bash \ build-essential \ build-essential \ Loading @@ -36,20 +32,12 @@ RUN apt-get update && apt-get install -y \ libcurl4-openssl-dev \ libcurl4-openssl-dev \ libssl-dev \ libssl-dev \ && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/* # Copy application code # Copy application code COPY . . COPY . . ARG PIP_TF_SDK_INDEX_URL ARG PIP_INDEX_URL ARG PIP_EXTRA_INDEX_URL # Install Python dependencies # Install Python dependencies RUN python -m pip install --no-cache-dir -r requirements.txt --extra-index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} --trusted-host gitlab.i2cat.net RUN python -m pip install --no-cache-dir -r requirements.txt --extra-index-url ${PIP_TF_SDK_INDEX_URL} --trusted-host gitlab.i2cat.net # Set working directory for application execution WORKDIR /usr/app/src/ WORKDIR /usr/app/src/ # Expose application port EXPOSE 8989 EXPOSE 8989 # Set Gunicorn as the entrypoint # Set Gunicorn as the entrypoint ENTRYPOINT ["gunicorn", "wsgi:app", "--bind", "0.0.0.0:8989", "--workers", "4", "--log-level", "debug", "--timeout", "1000"] ENTRYPOINT ["gunicorn", "wsgi:app", "--bind", "0.0.0.0:8989", "--workers", "4", "--log-level", "debug", "--timeout", "1000"]