forked from sparna-git/Sparnatural
-
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.
Merge pull request #4 from thecloudcircle/v7
V7
- Loading branch information
Showing
147 changed files
with
140,781 additions
and
3,268 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,19 @@ | ||
FROM node:14 | ||
|
||
# to have latest npm version | ||
RUN npm i -g npm | ||
|
||
# install needed npm dependancies for build step | ||
WORKDIR /usr/src/app/ | ||
COPY package.json /usr/src/app/ | ||
COPY package-lock.json /usr/src/app/ | ||
RUN npm install | ||
COPY . /usr/src/app/ | ||
|
||
# build sparnatural into dist/ folder | ||
RUN npm run build | ||
|
||
# start a http server on the dist/folder | ||
RUN npm install -g http-server | ||
CMD [ "http-server", "-p", "8080", "/usr/src/app/dist/"] | ||
EXPOSE 8080 |
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
Oops, something went wrong.