Last active
December 6, 2018 09:34
-
-
Save jocafi/c54d10ff1d4b8d695a898ee8231de24e to your computer and use it in GitHub Desktop.
Deployment using Docker for static web apps or SPA (Tests purposes only)
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
{ | |
"port": 3000, | |
"files": false, | |
"watch": false, | |
"open": false, | |
"notify": false, | |
"ghostMode": false, | |
"logLevel": "silent", | |
"server": { | |
"middleware": { | |
"0": null | |
} | |
} | |
} |
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
# To CREATE, run: | |
# $ docker build -f Dockerfile -t jocafi/myapp:1.0.0 . | |
# To START, run: | |
# $ docker run -p 3000:3000 --name myapp -d jocafi/myapp:1.0.0 | |
FROM node:10.13.0-alpine | |
WORKDIR $HOME/dist | |
# dist contains the Angular App or any SPA | |
COPY dist/ . | |
# browser-sync configuration | |
# more information can be found at https://www.browsersync.io/docs/options/ | |
COPY bs-config.json . | |
EXPOSE 3000/tcp | |
EXPOSE 3001/tcp | |
RUN npm i -g lite-server | |
CMD lite-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment