Skip to content

Commit 59d5696

Browse files
Ensure all docker images run update from base image
1 parent 6f6224f commit 59d5696

12 files changed

Lines changed: 23 additions & 0 deletions

File tree

backend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN uv sync --package acidwatch-api --extra pg --frozen --no-dev --no-editable
1010

1111
FROM python:3.13-slim
1212

13+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
14+
1315
COPY --from=build /app/.venv /app/.venv
1416
COPY backend/alembic /app/backend/alembic
1517
COPY backend/alembic.ini backend/entrypoint /app/backend/

backend/Dockerfile.local

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM python:3.12-slim
22

3+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
4+
35
ENV UV_NO_CACHE=1
46
ENV UV_DYNAMIC_VERSIONING_BYPASS=0.1.0
57
ENV PYTHONDONTWRITEBYTECODE 1

frontend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ RUN npm install
99
RUN npm run build
1010

1111
FROM docker.io/nginxinc/nginx-unprivileged
12+
13+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
14+
1215
WORKDIR /app
1316
COPY --from=builder /app/dist ./www
1417
COPY nginx-conf/nginx.conf /etc/nginx/conf.d/default.conf

frontend/Dockerfile.local

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM docker.io/library/node:22-bookworm-slim
22

3+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
4+
35
WORKDIR /app
46

57
COPY package*.json ./

workers/arcs-exp/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN uv sync --project workers/arcs-exp --frozen --no-dev --no-editable
1414

1515
FROM python:3.13-slim
1616

17+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
18+
1719
COPY --from=build /app/.venv /app/.venv
1820

1921
ENV PATH="/app/.venv/bin:$PATH"

workers/arcs/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ RUN uv sync --project workers/arcs --frozen --no-dev --no-editable
2020

2121
FROM python:3.13-slim
2222

23+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
24+
2325
COPY --from=build /app/.venv /app/.venv
2426

2527
# the bin and model folders are not included when installing arcs, so even though we added

workers/example/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN uv sync --project workers/example --frozen --no-dev --no-editable
1111

1212
FROM python:3.13-slim
1313

14+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
15+
1416
COPY --from=build /app/.venv /app/.venv
1517

1618
ENV PATH="/app/.venv/bin:$PATH"

workers/gibbs-minimization/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN uv sync --project workers/gibbs-minimization --frozen --no-dev --no-editable
1212
FROM python:3.13-slim
1313

1414
RUN apt-get update && \
15+
apt-get upgrade -y && \
1516
apt-get install -y --no-install-recommends openjdk-21-jre-headless && \
1617
rm -rf /var/lib/apt/lists/*
1718

workers/phpitz-reactive/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN uv sync --project workers/phpitz-reactive --frozen --no-dev --no-editable
1111

1212
FROM python:3.13-slim
1313

14+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
15+
1416
COPY --from=build /app/.venv /app/.venv
1517

1618
ENV PATH="/app/.venv/bin:$PATH"

workers/phpitz-solubility/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN uv sync --project workers/phpitz-solubility --frozen --no-dev --no-editable
1111

1212
FROM python:3.13-slim
1313

14+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
15+
1416
COPY --from=build /app/.venv /app/.venv
1517

1618
ENV PATH="/app/.venv/bin:$PATH"

0 commit comments

Comments
 (0)