Skip to content

Commit 046d2bd

Browse files
committed
build: harden frontend build and deps
1 parent 9cafb8d commit 046d2bd

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ ENV NODE_ENV=production
55
WORKDIR /app
66

77
USER 0
8+
RUN useradd --no-log-init --create-home --home-dir /home/webbuild --uid 10001 --gid 0 webbuild
9+
RUN chown webbuild:0 /app
810

9-
COPY web/package.json web/package-lock.json ./
11+
USER webbuild
12+
13+
COPY --chown=webbuild:0 web/package.json web/package-lock.json ./
1014
RUN npm ci
1115

12-
COPY web ./
16+
COPY --chown=webbuild:0 web ./
1317
RUN npm run build
1418

1519
FROM registry.access.redhat.com/ubi9/python-312:latest

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
]
1212
requires-python = ">=3.12,<3.13"
1313
dependencies = [
14-
"fastapi>=0.112,<0.115",
14+
"fastapi>=0.115,<0.117",
1515
"uvicorn[standard]>=0.30,<0.32",
1616
"httpx>=0.27,<0.28",
1717
"pydantic>=2.7,<2.9",
@@ -28,7 +28,8 @@ dependencies = [
2828
"signxml>=3.2,<4",
2929
"defusedxml>=0.7,<0.8",
3030
"pyyaml>=6.0,<7",
31-
"python-multipart>=0.0.9,<0.0.10",
31+
"python-multipart>=0.0.19,<0.0.20",
32+
"starlette>=0.40,<0.41",
3233
"sigstore>=2.1.5,<3",
3334
"spdx-tools>=0.7,<0.8",
3435
"boto3>=1.35,<1.36",

uv.lock

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)