FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
IPFS-boot-react/Dockerfile at master · rhodey/IPFS-boot-react · GitHub
rhodey
/
IPFS-boot-react
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
IPFS-boot-react
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (41 loc) · 1.06 KB
Breadcrumbs
IPFS-boot-react
/
Dockerfile
Copy path
File metadata and controls
48 lines (41 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
FROM
ubuntu:24.04
RUN
apt update
RUN
apt install -y curl git
#
install node
WORKDIR
/root/js
ENV
NVM_DIR=/root/js/.nvm
RUN
git clone --depth 1 --branch v0.40.1 https://github.com/nvm-sh/nvm nvm
RUN
cd nvm && . ./nvm.sh && nvm install 20.11.1
ENV
PATH=
"/root/js/.nvm/versions/node/v20.11.1/bin:$PATH"
RUN
node -v
#
install ipfs cli
WORKDIR
/root/ipfs
RUN
curl https://dist.ipfs.tech/kubo/v0.32.0/kubo_v0.32.0_linux-amd64.tar.gz -o kubo_v0.32.0_linux-amd64.tar.gz
RUN
tar -xvzf kubo_v0.32.0_linux-amd64.tar.gz
RUN
cd kubo && bash -c
"./install.sh"
#
js packages
WORKDIR
/root/js
COPY
package.json .
COPY
package-lock.json .
RUN
npm install
#
sources
WORKDIR
/root/js
COPY
src/ src/
COPY
public/ public/
COPY
index.html .
COPY
eslint.config.js .
COPY
vite.config.js .
COPY
<<EOF /root/cmd.sh
#
build
npm run build
rm -rf /root/dist/*
cp -r dist/* /root/dist
#
show CID
ipfs init >>/dev/null 2>&1
cid=
\$
(ipfs add -q -r /root/dist | tail -n 1)
echo
"CIDv0 =
\$
cid"
cb32=
\$
(ipfs cid base32
"
\$
cid"
)
echo
"CIDv1 =
\$
cb32"
EOF
RUN
chmod +x /root/cmd.sh
CMD
[
"bash"
,
"-c"
,
"/root/cmd.sh"
]
Back
|
FazBrowse Home
|
New Git URL