forked from overhangio/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: overhaul Dockerfile for improved developer workflow
WIP
- Loading branch information
1 parent
45316bf
commit 771c998
Showing
6 changed files
with
241 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# | ||
# Wrapper around 'npm' for openedx image. | ||
# Ensures that npm always operates in the 'global' /openedx/node_modules directory, | ||
# not in the 'local' /openedx/edx-platform/node_modules directory. | ||
# | ||
# Rationale: We want node_modules to exist outside of the edx-platform repository. | ||
# That way, when a developer mounts a fork of edx-platform, they don't need to | ||
# re-run `npm install` themselves, because the pre-built node_modules folder will | ||
# still be available on the image. | ||
|
||
set -ue # Fail loudly. | ||
set -x # Print next command. | ||
/openedx/nodeenv/bin/npm --global --prefix=/openedx/node_modules "$@" |
Oops, something went wrong.