when trying to build this locally, everything works fine.
using an explicit recent version of a rust image (1.56-buster) does not help
removing /target and cargo.lock didn't change these things
removing cargo-chef didn't help
So even this fails:
FROM rust as builder
WORKDIR /app
COPY . .
RUN cargo build --release --bin atomic-server
I tried a bunch of different images, including rust:bullseye, rust:1.56-buster, nightly (docker.io/rustlang/rust:nightly@sha256:3cfad305e1290c0e00cbb9d68b2fe9a1c760562e30fa218bb607a7a960f47665) ... Older images don't work, because of the 2021 edition.
While running
RUN cargo chef cook --release --recipe-path recipe.json:
, compiling heim-net fails./target
andcargo.lock
didn't change these thingscargo-chef
didn't helpSo even this fails:
I tried a bunch of different images, including
rust:bullseye
,rust:1.56-buster
,nightly
(docker.io/rustlang/rust:nightly@sha256:3cfad305e1290c0e00cbb9d68b2fe9a1c760562e30fa218bb607a7a960f47665) ... Older images don't work, because of the 2021 edition.