Skip to content

Commit a1921d8

Browse files
committed
WIP nosecrusher
1 parent afe85a1 commit a1921d8

File tree

2 files changed

+44
-32
lines changed

2 files changed

+44
-32
lines changed

ci/sugondat-node.Dockerfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FROM ubuntu:20.04 as builder
2+
3+
LABEL org.opencontainers.image.source=https://github.com/pepyakin/bfb
4+
5+
ARG RUSTC_VERSION=nightly-2023-10-16
6+
7+
ENV CARGO_INCREMENTAL=0
8+
ENV CARGO_HOME=/cargo
9+
ENV CARGO_TARGET_DIR=/cargo_target
10+
ENV RUSTFLAGS=""
11+
ENV RUSTUP_HOME=/rustup
12+
13+
RUN mkdir -p /cargo
14+
RUN mkdir -p /cargo_target
15+
RUN mkdir -p /rustup
16+
17+
RUN \
18+
apt-get update && \
19+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
20+
ca-certificates \
21+
protobuf-compiler \
22+
curl \
23+
git \
24+
llvm \
25+
clang \
26+
cmake \
27+
make
28+
29+
WORKDIR /sugondat
30+
COPY . /sugondat
31+
32+
RUN \
33+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTC_VERSION
34+
RUN $CARGO_HOME/bin/rustup target add wasm32-unknown-unknown
35+
36+
RUN $CARGO_HOME/bin/cargo build -p sugondat-node --locked --release
37+
38+
# FROM docker.io/library/ubuntu:20.04
39+
# COPY --from=builder /sugondat/target/release/sugondat-node /usr/local/bin
40+
41+
#USER sugondat
42+
# EXPOSE 30333 9933 9944 9615
43+
# VOLUME ["/data"]
44+
# ENTRYPOINT [ "/usr/local/bin/sugondat-node" ]

sugondat-chain/Dockerfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)