Image multistage

This commit is contained in:
Eric Coissac
2025-10-15 14:08:52 +02:00
parent 60130d6b42
commit 64cb75e40a
5 changed files with 86 additions and 90 deletions

View File

@@ -50,9 +50,9 @@ docker run --rm \
exit 1
}
# Copy to course volume
# Copy to course R packages directory
echo ""
echo -e "${BLUE}💾 Copying to course volume...${NC}"
echo -e "${BLUE}💾 Copying to course/R_packages...${NC}"
docker run --rm \
-v jupyterhub-course:/target \
-v "${TEMP_DIR}:/source" \
@@ -65,10 +65,10 @@ rm -rf "${TEMP_DIR}"
echo ""
echo -e "${GREEN}✅ Installation complete!${NC}"
echo ""
echo -e "${BLUE}📦 Installed packages in course/R_packages:${NC}"
echo -e "${BLUE}📦 Installed packages in work/course/R_packages:${NC}"
docker run --rm \
-v jupyterhub-course:/course \
alpine ls -1 /course/R_packages/
echo ""
echo -e "${YELLOW} Students need to restart their R kernels to use new packages.${NC}"
echo -e "${YELLOW} Students need to restart their R kernels to use new packages.${NC}"