Upgrade to LTS node version; move npm install down after copy in hopes of avoiding previous errors with sqlite3 package.
This commit is contained in:
parent
336bc8a844
commit
da4f2fcbf6
@ -1,4 +1,4 @@
|
|||||||
FROM node:4.1.2
|
FROM node:4.2.1
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
@ -12,8 +12,8 @@ RUN apt-get update && apt-get install -y vim git
|
|||||||
COPY .vimrc /root/.vimrc
|
COPY .vimrc /root/.vimrc
|
||||||
|
|
||||||
COPY package.json /usr/src/app/
|
COPY package.json /usr/src/app/
|
||||||
RUN npm install
|
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
# Use nodemon to start app, note this will break if main file no longer named server.js.
|
# Use nodemon to start app, note this will break if main file no longer named server.js.
|
||||||
CMD [ "nodemon", "server.js" ]
|
CMD [ "nodemon", "server.js" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user