atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
1.07k stars 49 forks source link

Unable to build docker image #203

Closed joepio closed 3 years ago

joepio commented 3 years ago

While running RUN cargo chef cook --release --recipe-path recipe.json:, compiling heim-net fails.

ing cookie_store v0.12.0
#18 153.4    Compiling heim-net v0.0.11
#18 155.0 error[E0308]: mismatched types
#18 155.0   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/heim-host-0.0.11/src/sys/linux/users/other.rs:79:25
#18 155.0    |
#18 155.0 79 |             session_id: entry.ut_session,
#18 155.0    |                         ^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
#18 155.0 

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.

joepio commented 3 years ago

https://github.com/heim-rs/heim/issues/207