generated from PrismarineJS/prismarine-template
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker support, made config dynamic (#108)
* Made config.json dynamic * added docker support * Fixed dockerfile npm install error * fixed line ends * Revert "Made config.json dynamic" This reverts commit 5cb413b. * config.json is now loaded dynamically * Made dynamic config work on github page * config is now dynamically copied * removed sync-request dependency Co-authored-by: d513 <[email protected]>
- Loading branch information
dada513
and
d513
authored
Mar 21, 2021
1 parent
cec8f17
commit 4d4b32e
Showing
5 changed files
with
29 additions
and
7 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,5 @@ | ||
# we dont want default config to be loaded in the dockerfile, but rather using a volume | ||
config.json | ||
# build stuff | ||
node_modules | ||
public |
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,9 @@ | ||
FROM node:14-alpine | ||
# Without git installing the npm packages fails | ||
RUN apk add git | ||
RUN mkdir /app | ||
WORKDIR /app | ||
COPY . /app | ||
RUN npm install | ||
RUN npm run build | ||
ENTRYPOINT ["npm", "run", "prod-start"] |
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
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