...
1# syntax = docker/dockerfile:1.3
2
3###
4# This dockerfile builds the base image for the builder container. See
5# the main Dockerfile for more information about what the builder
6# container is and how code in this repo is built.
7#
8# Originally this base was built as part of the builder container's
9# bootstrap process. We discovered that minor network interruptions
10# would break these steps, and such interruptions were common on our
11# cloud CI system. We decided to separate out these steps so that any
12# one of them is much less likely to be the cause of a network-related
13# failure, i.e. a flake.
14#
15# See the comment before the build_builder_base() function in builder.sh
16# to see when and how often this base image is built and pushed.
17##
18
19ARG from="i-forgot-to-set-build-arg-from"
20
21FROM ${from}
22
23COPY requirements.txt .
24RUN --mount=type=cache,target=/root/.cache/pip pip3 install -r requirements.txt && rm requirements.txt
View as plain text