-
-
Notifications
You must be signed in to change notification settings - Fork 704
Expand file tree
/
Copy pathDockerfile.base.j2
More file actions
29 lines (25 loc) · 740 Bytes
/
Dockerfile.base.j2
File metadata and controls
29 lines (25 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1.4
# vim: ft=dockerfile
FROM {{ base_image }}:{{ base_image_tag }}
{% if disable_cache_mounts %}
RUN \
{% else %}
RUN --mount=type=cache,target=/var/cache/apt \
{% endif %}
apt-get update && \
apt-get -y install --no-install-recommends \
{% for dependency in base_apt_dependencies %}
{% if not loop.last %}
{{ dependency }} \
{% else %}
{{ dependency }}
{% endif %}
{% endfor %}
# Works around issue with `curl`
# https://github.com/balena-io-library/base-images/issues/562
RUN c_rehash
{% if board in ['pi1', 'pi2'] %}
RUN pip3 install uv --break-system-packages
{% else %}
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
{% endif %}