mirror of
https://github.com/eth-act/ere.git
synced 2026-04-03 03:00:17 -04:00
Introduce CompilerKind and refactor ere-dockerized (#221)
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
ARG BASE_ZKVM_IMAGE=ere-base-openvm:latest
|
||||
ARG BASE_ZKVM_CUDA_IMAGE=ere-base-openvm:latest-cuda
|
||||
ARG RUNTIME_IMAGE=ubuntu:24.04
|
||||
ARG RUNTIME_CUDA_IMAGE=nvidia/cuda:12.9.1-runtime-ubuntu24.04
|
||||
|
||||
# Whether to enable CUDA feature or not.
|
||||
ARG CUDA
|
||||
|
||||
FROM $BASE_ZKVM_IMAGE AS base
|
||||
FROM $BASE_ZKVM_CUDA_IMAGE AS base_cuda
|
||||
FROM base${CUDA:+_cuda} AS build_stage
|
||||
FROM $BASE_ZKVM_IMAGE AS build_stage
|
||||
|
||||
COPY . /ere
|
||||
|
||||
@@ -19,7 +16,7 @@ ARG RUSTFLAGS
|
||||
|
||||
RUN cargo build --release --package ere-server --bin ere-server --features openvm${CUDA:+,cuda} \
|
||||
&& mkdir bin && mv target/release/ere-server bin/ere-server \
|
||||
&& cargo clean && rm -rf $CARGO_HOME/registry/src $CARGO_HOME/registry/cache
|
||||
&& cargo clean && rm -rf $CARGO_HOME/registry/
|
||||
|
||||
FROM $RUNTIME_IMAGE AS runtime
|
||||
FROM $RUNTIME_CUDA_IMAGE AS runtime_cuda
|
||||
|
||||
Reference in New Issue
Block a user