Skip to content

Commit b4e1e6c

Browse files
committed
Set the working directory correctly in the Docker image, do a git pull when the container starts, and rebuild on every commit.
1 parent 59d312d commit b4e1e6c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- 'build/dockerfile'
9-
- 'build/requirements.txt'
10-
- 'build/docker-compose.yml'
11-
- '.github/workflows/build-docker-image.yml'
127

138
jobs:
149
build-and-push:

build/dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM rapidsai/devcontainers:25.10-cpp-cuda12.9
22

3-
WORKDIR /pyhpc-tutorial
4-
53
COPY . /pyhpc-tutorial
64

7-
RUN pip install --root-user-action ignore -r build/requirements.txt
5+
RUN pip install --root-user-action ignore -r /pyhpc-tutorial/build/requirements.txt
6+
7+
WORKDIR /pyhpc-tutorial/notebooks
8+
9+
ENTRYPOINT git pull && /bin/bash

0 commit comments

Comments
 (0)