Skip to content

Commit dd1a4ec

Browse files
committed
fix apt installs in Dockerfile template
1 parent b8b3f90 commit dd1a4ec

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

template/Dockerfile.jinja

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# The developer stage is used as a devcontainer including dev versions
22
# of the build dependencies
33
FROM ghcr.io/diamondlightsource/ubuntu-devcontainer:noble AS developer
4-
RUN apt-get update -y && apt-get install -y --no-install-recommends \
5-
libevent-dev \
6-
libreadline-dev{% if docker %}
4+
5+
# Add any system dependencies for the developer/build environment here
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
graphviz \
8+
&& rm -rf /var/lib/apt/lists/*
79

810
# The build stage makes some assets using the developer tools
911
FROM developer AS build
@@ -26,10 +28,11 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2628
# The runtime stage installs runtime deps then copies in built assets
2729
# This time we remove the apt lists to save disk space
2830
FROM ubuntu:noble as runtime
29-
RUN apt-get update -y && apt-get install -y --no-install-recommends \
30-
libevent \
31-
libreadline \
32-
&& rm -rf /var/lib/apt/lists/*
31+
32+
# Add apt-get system dependecies for runtime here if needed
33+
{# RUN apt-get update && apt-get install -y --no-install-recommends \
34+
xxx \
35+
&& rm -rf /var/lib/apt/lists/* #}
3336
COPY --from=build /assets /
3437

3538
# We need to keep the venv at the same absolute path as in the build stage

0 commit comments

Comments
 (0)