/
Dockerfile
76 lines (56 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Dockerfile for the development of Internet Computer canisters using CXX CDK
#
# (c) 2022
#
# ICPORTS Labs
#
#
FROM ubuntu
MAINTAINER ICPORTS <info-icports>
#
# Update
#
RUN apt-get update && apt-get upgrade -y
RUN apt-get update
#
# Install utilities
#
RUN apt-get install curl -y
RUN apt-get install git -y
#
# Install LLVM
#
RUN apt-get install clang lldb lld -y
#
# Install DFX
#
RUN sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"
RUN dfx --version
#
# Install and wasi-sdk
#
RUN apt-get install wget
ENV WASI_VERSION "14"
ENV WASI_VERSION_FULL "$WASI_VERSION.0"
RUN wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
RUN tar xvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
#
# set SDK env var
#
ENV WASI_SDK_PATH "/wasi-sdk-${WASI_VERSION_FULL}"
RUN echo $WASI_SDK_PATH
#
# Download chico and set working directory to chico
#
RUN clang --version -v
RUN git clone https://github.com/ICPorts-labs/chico.git
WORKDIR chico
ENV CHICO_PATH "/chico/src"
#################
#
#
# This concludes downloading everything you need to start building C/C++ canisters
# See the examples folder for how to use this Dockerfile for developping C/C++ canisters
#
################