-
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.
Container: add Webpack Encore watcher
Issue #111
- Loading branch information
1 parent
c545e92
commit 2deb11a
Showing
3 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:14-alpine3.10 | ||
|
||
RUN apk --no-cache add su-exec entr | ||
|
||
COPY entrypoint.sh /usr/local/bin/custom-entrypoint | ||
ENTRYPOINT ["custom-entrypoint"] | ||
|
||
WORKDIR /srv |
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,8 @@ | ||
#!/bin/sh -e | ||
|
||
# Make it easier to run the application first time. :) | ||
if [[ ! -d node_modules ]]; then | ||
su-exec $(stat -c '%u:%g' .) npm install | ||
fi | ||
|
||
echo webpack.config.js | su-exec $(stat -c '%u:%g' .) entr -r npm run watch |
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