@@ -22,24 +22,24 @@ COPY requirements.txt /code/
2222# Install all system and Python dependencies in one go
2323# hadolint ignore=DL3008,DL3013
2424RUN apt-get update -y && \
25- apt-get install --no-install-recommends -y \
26- gcc \
27- git \
28- libpcre3 \
29- libpcre3-dev \
30- libpython3.12 \
31- python3-pip \
32- python3.12 \
33- python3.12-dev \
34- vim-tiny && \
35- pip install --no-cache-dir --upgrade " setuptools<81.0.0" && \
36- pip install --no-cache-dir -r /code/requirements.txt && \
37- apt-get remove -y \
38- gcc \
39- python3.12-dev && \
40- apt-get autoremove -y && \
41- apt-get clean && \
42- rm -rf /var/lib/apt/lists/*
25+ apt-get install --no-install-recommends -y \
26+ gcc \
27+ git \
28+ libpcre3 \
29+ libpcre3-dev \
30+ libpython3.12 \
31+ python3-pip \
32+ python3.12 \
33+ python3.12-dev \
34+ vim-tiny && \
35+ pip install --no-cache-dir --upgrade ' setuptools<81' && \
36+ pip install --no-cache-dir -r /code/requirements.txt && \
37+ apt-get remove -y \
38+ gcc \
39+ python3.12-dev && \
40+ apt-get autoremove -y && \
41+ apt-get clean && \
42+ rm -rf /var/lib/apt/lists/*
4343
4444# Copy cluster component source code
4545WORKDIR /code
@@ -52,19 +52,19 @@ RUN if [ "${DEBUG}" -gt 0 ]; then pip install --no-cache-dir -e ".[debug]"; else
5252# Are we building with locally-checked-out shared modules?
5353# hadolint ignore=DL3013
5454RUN if test -e modules/reana-commons; then \
55- if [ "${DEBUG}" -gt 0 ]; then \
56- pip install --no-cache-dir -e "modules/reana-commons[kubernetes]" --upgrade; \
57- else \
58- pip install --no-cache-dir "modules/reana-commons[kubernetes]" --upgrade; \
59- fi \
60- fi; \
61- if test -e modules/reana-db; then \
62- if [ "${DEBUG}" -gt 0 ]; then \
63- pip install --no-cache-dir -e "modules/reana-db" --upgrade; \
64- else \
65- pip install --no-cache-dir "modules/reana-db" --upgrade; \
66- fi \
67- fi
55+ if [ "${DEBUG}" -gt 0 ]; then \
56+ pip install --no-cache-dir -e "modules/reana-commons[kubernetes]" --upgrade; \
57+ else \
58+ pip install --no-cache-dir "modules/reana-commons[kubernetes]" --upgrade; \
59+ fi \
60+ fi; \
61+ if test -e modules/reana-db; then \
62+ if [ "${DEBUG}" -gt 0 ]; then \
63+ pip install --no-cache-dir -e "modules/reana-db" --upgrade; \
64+ else \
65+ pip install --no-cache-dir "modules/reana-db" --upgrade; \
66+ fi \
67+ fi
6868
6969# Check for any broken Python dependencies
7070RUN pip check
@@ -75,12 +75,12 @@ ARG UWSGI_MAX_FD=1048576
7575ARG UWSGI_PROCESSES=2
7676ARG UWSGI_THREADS=2
7777ENV FLASK_APP=reana_workflow_controller/app.py \
78- PYTHONPATH=/workdir \
79- TERM=xterm \
80- UWSGI_BUFFER_SIZE=${UWSGI_BUFFER_SIZE:-8192} \
81- UWSGI_MAX_FD=${UWSGI_MAX_FD:-1048576} \
82- UWSGI_PROCESSES=${UWSGI_PROCESSES:-2} \
83- UWSGI_THREADS=${UWSGI_THREADS:-2}
78+ PYTHONPATH=/workdir \
79+ TERM=xterm \
80+ UWSGI_BUFFER_SIZE=${UWSGI_BUFFER_SIZE:-8192} \
81+ UWSGI_MAX_FD=${UWSGI_MAX_FD:-1048576} \
82+ UWSGI_PROCESSES=${UWSGI_PROCESSES:-2} \
83+ UWSGI_THREADS=${UWSGI_THREADS:-2}
8484
8585# Expose ports to clients
8686EXPOSE 5000
@@ -90,22 +90,22 @@ EXPOSE 5000
9090# while also allowing shell expansion
9191# hadolint ignore=DL3025
9292CMD exec uwsgi \
93- --buffer-size ${UWSGI_BUFFER_SIZE} \
94- --die-on-term \
95- --hook-master-start "unix_signal:2 gracefully_kill_them_all" \
96- --hook-master-start "unix_signal:15 gracefully_kill_them_all" \
97- --enable-threads \
98- --http-socket 0.0.0.0:5000 \
99- --master \
100- --max-fd ${UWSGI_MAX_FD} \
101- --module reana_workflow_controller.app:app \
102- --need-app \
103- --processes ${UWSGI_PROCESSES} \
104- --single-interpreter \
105- --stats /tmp/stats.socket \
106- --threads ${UWSGI_THREADS} \
107- --vacuum \
108- --wsgi-disable-file-wrapper
93+ --buffer-size ${UWSGI_BUFFER_SIZE} \
94+ --die-on-term \
95+ --hook-master-start "unix_signal:2 gracefully_kill_them_all" \
96+ --hook-master-start "unix_signal:15 gracefully_kill_them_all" \
97+ --enable-threads \
98+ --http-socket 0.0.0.0:5000 \
99+ --master \
100+ --max-fd ${UWSGI_MAX_FD} \
101+ --module reana_workflow_controller.app:app \
102+ --need-app \
103+ --processes ${UWSGI_PROCESSES} \
104+ --single-interpreter \
105+ --stats /tmp/stats.socket \
106+ --threads ${UWSGI_THREADS} \
107+ --vacuum \
108+ --wsgi-disable-file-wrapper
109109
110110# Set image labels
111111LABEL org.opencontainers.image.authors="team@reanahub.io"
0 commit comments