aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/Dockerfile
blob: 8ff0ca7ce71700d7107a3ef21c367f6399545680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Ubuntu 22.04 LTS supported until April 2027
FROM ubuntu:22.04 AS common

WORKDIR /build
COPY install-common.bash /build/
RUN ./install-common.bash

# Add an intermediate tag so that it is possible to execute debugging
# code before formatter installation. This is necessary because with
# the newer docker build based on buildkit, you can't access
# intermediate image layers by default anymore.
FROM common
ARG FORMATTERS
COPY install-formatters.bash /build/
COPY installers /build/installers/
RUN ./install-formatters.bash

WORKDIR /src