@@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
16
16
go build -v -o /usr/bin/ssh getsturdy.com/ssh/cmd/ssh
17
17
18
18
FROM debian:11.2-slim as ssh
19
- RUN apt-get update && apt-get install -y --no-install-recommends \
19
+ RUN apt-get update && apt-get install -y --no-install-recommends --allow-downgrades \
20
20
ca-certificates \
21
21
&& rm -rf /var/lib/apt/lists/*
22
22
COPY --from=ssh-builder /usr/bin/ssh /usr/bin/ssh
@@ -28,7 +28,7 @@ COPY --from=ssh-builder /go/src/ssh/mutagen-agent-v0.13.0-beta2 /usr/bin/mutagen
28
28
FROM golang:1.18.0-bullseye as api-builder
29
29
# compile libgit2
30
30
RUN apt-get update \
31
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
31
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --allow-downgrades \
32
32
libgit2-dev \
33
33
libssh2-1-dev \
34
34
git=1:2.30.2-1 \
@@ -61,7 +61,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build,id=go-build \
61
61
62
62
FROM debian:11.2-slim as api
63
63
RUN apt-get update \
64
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
64
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --allow-downgrades \
65
65
git-lfs=2.13.2-1+b5 \
66
66
ca-certificates \
67
67
&& rm -rf /var/lib/apt/lists/*
@@ -78,14 +78,16 @@ ENV PKG_CONFIG_ALLOW_CROSS="1" \
78
78
DEBIAN_FRONTEND="noninteractive" \
79
79
CARGO_BUILD_TARGET="aarch64-unknown-linux-gnu"
80
80
RUN apt-get update \
81
- && apt-get -y --no-install-recommends install \
81
+ && apt-get -y --no-install-recommends --allow-downgrades install \
82
82
musl-tools \
83
83
ca-certificates \
84
84
git \
85
85
&& git clone https://github.com/jasonwhite/rudolfs
86
86
WORKDIR /rudolfs
87
87
SHELL ["/bin/bash" , "-c" ]
88
- RUN git checkout 0.3.5 \
88
+ RUN --mount=type=cache,target=/usr/local/cargo/registry \
89
+ --mount=type=cache,target=/rudolfs/target \
90
+ git checkout 0.3.5 \
89
91
&& rustup target add "${CARGO_BUILD_TARGET}" \
90
92
&& cargo build --target "${CARGO_BUILD_TARGET}" --release \
91
93
&& mkdir -p /build \
@@ -95,7 +97,7 @@ RUN git checkout 0.3.5 \
95
97
FROM debian:11.2-slim as rudolfs
96
98
VOLUME ["/data" ]
97
99
RUN apt-get update \
98
- && apt-get install -y --no-install-recommends \
100
+ && apt-get install -y --no-install-recommends --allow-downgrades \
99
101
ca-certificates
100
102
# use the correct binary depending on the architecture. we do this to avoid building amd64 version ourselves,
101
103
# as it requires us to run qemu emulation which is very slow.
@@ -120,7 +122,7 @@ RUN apk update \
120
122
COPY ./web/package.json ./package.json
121
123
COPY ./web/yarn.lock ./yarn.lock
122
124
# The --network-timeout is here to prevent network issues when building linux/amd64 images on linux/arm64 hosts
123
- RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn \
125
+ RUN --mount=type=cache,target=/root/.yarn,id=web-installer-3 YARN_CACHE_FOLDER=/root/.yarn \
124
126
yarn install --frozen-lockfile \
125
127
--network-timeout 1000000000
126
128
# build web
@@ -158,7 +160,7 @@ FROM debian:11.2-slim as oneliner
158
160
# ca-cerificates is needed by ssh to connect to tls hosts
159
161
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
160
162
RUN apt-get update \
161
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
163
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --allow-downgrades \
162
164
curl=7.74.0-1.3+deb11u1 \
163
165
ca-certificates=20210119 \
164
166
gnupg=2.2.27-2 \
@@ -167,9 +169,9 @@ RUN apt-get update \
167
169
| tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
168
170
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/postgresql.list \
169
171
&& apt-get update \
170
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
172
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --allow-downgrades \
171
173
postgresql-14=14.2-1.pgdg110+1 \
172
- openssl=1.1.1k-1+deb11u1 \
174
+ openssl=1.1.1k-1+deb11u2 \
173
175
git=1:2.30.2-1 \
174
176
git-lfs=2.13.2-1+b5 \
175
177
keychain=2.8.5-2 \
0 commit comments