Skip to content

Commit 9d2284c

Browse files
committed
extend http timeout
1 parent caa90fe commit 9d2284c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ RUN apt-get update && apt-get install -y \
1212
git \
1313
&& rm -rf /var/lib/apt/lists/*
1414

15-
# Install Go for x86 architecture (latest supported version 1.21)
16-
RUN curl -OL https://golang.org/dl/go1.21.1.linux-amd64.tar.gz && \
17-
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz && \
18-
rm go1.21.1.linux-amd64.tar.gz
15+
# Install Go for ARM architecture (latest supported version 1.21)
16+
RUN curl -OL https://golang.org/dl/go1.21.1.linux-arm64.tar.gz && \
17+
tar -C /usr/local -xzf go1.21.1.linux-arm64.tar.gz && \
18+
rm go1.21.1.linux-arm64.tar.gz
1919

2020
# Set Go environment variables
2121
ENV PATH="/usr/local/go/bin:${PATH}"
@@ -49,4 +49,6 @@ EXPOSE 5050
4949
ENV FLASK_APP=app.py
5050

5151
# Run the application using uWSGI
52-
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4"]
52+
# CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4"]
53+
# longer timeout settings to allow for slower rag and llm responses
54+
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--harakiri", "300", "--socket-timeout", "300", "--http-timeout", "300", "--ignore-sigpipe", "--ignore-write-errors", "--http-keepalive", "--http-auto-chunked"]

0 commit comments

Comments
 (0)