-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84e1cec
commit bfc8681
Showing
6 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
# https://docs.docker.com/reference/dockerfile/ | ||
|
||
# https://hub.docker.com/_/node/ | ||
FROM node:14 | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 8080 | ||
|
||
COPY startupservice.sh /usr/local/sbin/startupservice.sh | ||
RUN chmod +x /usr/local/sbin/startupservice.sh | ||
CMD /usr/local/sbin/startupservice.sh |
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/bash | ||
set -o errexit | ||
set -o nounset | ||
|
||
cd /app | ||
|
||
if [[ ! -d node_modules ]] | ||
then | ||
echo 'Clean installing packages from package-lock.json' | ||
npm ci | ||
echo | ||
fi | ||
|
||
npm run serve |
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