Skip to content

Commit

Permalink
Use ubuntu 22.04 as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Jul 5, 2024
1 parent 14189ed commit d99cb63
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# This is an example build stage for the node template. Here we create the binary in a temporary image.

# This is a base image to build substrate nodes
FROM docker.io/paritytech/ci-linux:production as builder
FROM ubuntu:22.04 as builder

ARG PROFILE=production

WORKDIR /subcoin

RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
protobuf-compiler \
curl \
git \
llvm \
clang \
cmake \
make && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

RUN /root/.cargo/bin/rustup target add wasm32-unknown-unknown

COPY . .

RUN cargo build --locked --profile=production
Expand Down

0 comments on commit d99cb63

Please sign in to comment.