File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ WORKDIR /app
33
44COPY ["package.json" , "./" ]
55COPY ["gulpfile.js" , "./" ]
6- COPY ["app" , "./app" ]
76
87RUN npm install gulp -g
98RUN npm install
9+
10+ COPY ["app" , "./app" ]
11+
1012RUN gulp build
1113
12- CMD ["gulp" , "serve" ]
14+ CMD ["gulp" , "serve" ]
Original file line number Diff line number Diff line change @@ -86,11 +86,15 @@ A browser should launch viewing [https://localhost:3000](https://localhost:3000)
8686
8787### Option 2: Use Docker
8888
89- 1 . docker build --tag devjava .
90- 1 . docker run --publish 3000:3000 devjava
89+ 1 . ` docker build --tag devjava . `
90+ 1 . ` docker run --publish 3000:3000 --rm devjava `
9191
9292You should then be able to open a browser and visit [ https://localhost:3000 ] ( https://localhost:3000 )
9393
94+ In order to automatically update the site when editing an article, it is possible to mount a volume:
95+
96+ 1 . ` docker build --tag devjava . `
97+ 1 . ` docker run --publish 3000:3000 --rm -v $PWD/app:/app/app devjava `
9498
9599## Working with Content
96100
You can’t perform that action at this time.
0 commit comments