Skip to content

Commit af49849

Browse files
committed
Added a yml file to build the docker image
1 parent a55aec3 commit af49849

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Run Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-run-docker:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
# Build the Docker image
23+
- name: Build Docker image
24+
run: |
25+
docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
26+
27+
# Run the Docker container
28+
- name: Run Docker container
29+
run: |
30+
docker run -it --rm --name TF2.4_IVIM-MRI_CodeCollection \
31+
-v ${{ github.workspace }}:/usr/src/app \
32+
-v ${{ github.workspace }}:/usr/app/output \
33+
tf2.4_ivim-mri_codecollection brain.nii.gz brain.bvec brain.bval

0 commit comments

Comments
 (0)