Skip to content

Commit

Permalink
update: support next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanycyang committed Mar 30, 2018
1 parent 3d0c609 commit 9314a06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ COPY ./package.json /var/www/app
RUN yarn

COPY . /var/www/app
# RUN npm run build
RUN npm run build

RUN yarn cache clean
# RUN apk del dev-dependencies

EXPOSE 4000
CMD ["node", "index"]

CMD ["npm", "start"]
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ node1:
- "4000"
volumes:
- ./:/var/www/app
command: npm run dev
redis:
image: redis:3.2-alpine
ports:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "next start",
"start": "next start -p 4000",
"build": "next build",
"dev": "next -p 4000",
"test": "mocha"
Expand Down

0 comments on commit 9314a06

Please sign in to comment.