File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM node:8.10
2+
3+ RUN echo '{"allow_root": true}' > /root/.bowerrc
4+
5+ WORKDIR /app
6+ ADD . /app
7+
8+ EXPOSE 3000
Original file line number Diff line number Diff line change @@ -132,8 +132,15 @@ feedback from dozens of instructors.
132132
133133### Running locally ###
134134
135- Pretty easy. Just check out the code. You’ll need [ Yarn] ( https://yarnpkg.com/ ) ,
136- which is the cool new NPM. It’s [ easy to
135+ #### With Docker
136+
137+ If you already use Docker, your best bet is to use it for Popcode development
138+ too. A simple ` docker-compose up ` will do the trick.
139+
140+ #### Without Docker
141+
142+ Still pretty easy. Just check out the code. You’ll need
143+ [ Yarn] ( https://yarnpkg.com/ ) , which is the cool new NPM. It’s [ easy to
137144install] ( https://yarnpkg.com/en/docs/install ) .
138145
139146Once you’ve got it just run:
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+ services :
3+ app :
4+ build : .
5+ command : yarn dev
6+ ports :
7+ - " 3000:3000"
8+ volumes :
9+ - .:/app:cached
10+ - node_modules:/app/node_modules
11+ volumes :
12+ node_modules :
You can’t perform that action at this time.
0 commit comments