Przeglądaj źródła

Move to rust 1.40

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 5 lat temu
rodzic
commit
af43bbaf1e
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4 5
      Dockerfile

+ 4 - 5
Dockerfile

@@ -2,14 +2,13 @@
 # error: cannot produce proc-macro for `serde_derive v1.0.102` as the target `x86_64-unknown-linux-musl` does not support these crate types
 # See https://github.com/rust-lang/cargo/issues/5266
 
-# Debian buster does not have llvm 8.
-
 # Fedora 30 produces a builder image 2.01 GiB and solang image of 294 MiB
+# Ubuntu 18.04 produces a builder image 1.53 GiB and solang image of 84 MiB
+# Debian Buster produces a builder image 2.04 GiB
 
-# Ubuntu 18.04 produces a builder images 1.53 GiB and solang image of 84 MiB
-
-FROM ubuntu:18.04 as builder
+FROM rust:1.40-slim-buster as builder
 MAINTAINER Sean Young <sean@mess.org>
+RUN echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
 RUN apt-get update
 RUN apt-get install -y cargo llvm-8-dev clang-8 libz-dev pkg-config libssl-dev git