Skip to content

Commit b6b1c2f

Browse files
committed
update dockerfile
1 parent 43ba464 commit b6b1c2f

4 files changed

Lines changed: 29 additions & 12 deletions

File tree

docker/Dockerfile.demo

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

docker/Dockerfile.full

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ RUN mkdir tutorial && \
1010

1111
RUN git clone https://github.com/OpenXiangShan/XSPdb.git --depth=1 && \
1212
cd XSPdb && \
13-
pip3 install -r requirements.txt
13+
make init

docker/build-scripts/build-base.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
REGISTRY='ghcr.io'
4+
IMAGE_NAME='xs-mlvp/envbase'
5+
IMAGE_TAG='latest'
6+
7+
# Build the base image
8+
sudo docker build \
9+
--network host \
10+
-t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG \
11+
-f docker/Dockerfile \
12+
.

docker/build-scripts/build-full.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# whereis this script located?
4+
PATH_TO_SCRIPT=$(dirname "$(readlink -f "$0")")
5+
${PATH_TO_SCRIPT}/build-base.sh
6+
7+
REGISTRY='ghcr.io'
8+
IMAGE_NAME='xs-mlvp/envfull'
9+
IMAGE_TAG='latest'
10+
11+
# Build the full image
12+
sudo docker build \
13+
--network host \
14+
-t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG \
15+
-f docker/Dockerfile.full \
16+
.

0 commit comments

Comments
 (0)