-
Notifications
You must be signed in to change notification settings - Fork 2
/
crio.Dockerfile
64 lines (54 loc) · 1.3 KB
/
crio.Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# syntax = docker/dockerfile:1.4.1
from ubuntu:22.04 as base
workdir /tmp/docker-build/work/
shell [ \
"/usr/bin/env", "bash", \
"-o", "errexit", \
"-o", "pipefail", \
"-o", "nounset", \
"-o", "verbose", \
"-o", "errtrace", \
"-O", "inherit_errexit", \
"-O", "shift_verbose", \
"-c" \
]
env TZ='Etc/UTC'
env LANG='en_US.UTF-8'
arg DEBIAN_FRONTEND=noninteractive
run --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
<<DKR
apt-get update
apt-get install \
--yes \
--no-install-recommends \
gnupg \
software-properties-common
add-apt-repository --yes \
ppa:longsleep/golang-backports
DKR
run --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
<<DKR
apt-get update
# todo(maximsmol): lock the golang version
apt-get install \
--yes \
--no-install-recommends \
git \
build-essential \
golang-go \
libgpgme-dev
DKR
run --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
<<DKR
git clone \
--branch v1.28-sysbox \
--depth 1 \
--shallow-submodules \
https://github.com/nestybox/cri-o.git \
cri-o
cd cri-o
make binaries
DKR