summaryrefslogtreecommitdiff
path: root/hermetic/Dockerfile
blob: 886f62d413b4de3ac0487d34b000dc9e5c66f4e7 (plain)
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
FROM debian:stable-slim

RUN apt-get -y update                            \
&&  apt-get -y install                           \
# Those are likely essential
    git                                          \
# To be removed
    # see  b/164026334
    cpio                                         \
    libc6-dev                                    \
    libgcc-8-dev                                 \
    libssl-dev                                   \
    rsync                                        \
&& apt-get clean                                 \
&& rm -rf /var/lib/apt/lists/*

# Explicitly allow some host binaries for now
RUN mkdir -p /l/bin
RUN ln -s $(which cpio) /l/bin/      # b/164026334
RUN ln -s $(which perl) /l/bin/
RUN ln -s $(which rsync) /l/bin/
RUN ln -s $(which sh) /l/bin/
RUN ln -s $(which tar) /l/bin/       # b/164013907

# Allow git usage during the build (e.g. to determine timestamps)
RUN ln -s $(which git) /l/bin/

# Copy the build runner
COPY build /l/build

# Run the build runner if no other command is given
CMD /l/build