Skip to content

Commit a08496f

Browse files
authored
Merge pull request #4 from co-cddo/bug/fix-dash-gunicorn
fix isue with gunicorn creating socket file.
2 parents 2a1de99 + bd19665 commit a08496f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "gds-idea-app-kit"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "CLI tool for scaffolding and maintaining GDS IDEA web apps on AWS"
99
readme = "README.md"
1010
requires-python = ">=3.11"

src/gds_idea_app_kit/templates/dash/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ COPY --chown=$USERNAME:$USERNAME app_src/uv.loc[k] ./
3131
# uncomment build-essential below to add C/C++ compilers:
3232
RUN apt-get update \
3333
&& apt-get install -y --no-install-recommends \
34-
ca-certificates \
35-
git \
36-
# build-essential \
34+
ca-certificates \
35+
git \
36+
# build-essential \
3737
&& rm -rf /var/lib/apt/lists/*
3838

3939
# Switch to non-root user for dependency installation
@@ -47,7 +47,7 @@ COPY --chown=$USERNAME:$USERNAME app_src/ .
4747

4848
EXPOSE 8080
4949

50-
CMD ["uv", "run", "gunicorn", "dash_app:server", "-b", "0.0.0.0:8080", "--workers", "1"]
50+
CMD ["uv", "run", "gunicorn", "dash_app:server", "-b", "0.0.0.0:8080", "--workers", "1", "--preload", "--timeout", "120", "--no-control-socket"]
5151

5252
# ============================================================================
5353
# Development stage - for dev containers (NOT DEFAULT)

0 commit comments

Comments
 (0)