2022-12-02 21:46:29 -05:00
|
|
|
FROM node:6.10.0-slim
|
2015-10-06 14:27:17 -04:00
|
|
|
|
2015-06-16 22:52:06 -04:00
|
|
|
EXPOSE 3000
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN mkdir -p /usr/src/app/db
|
2015-06-21 14:04:07 -04:00
|
|
|
VOLUME ["/usr/src/app/db"]
|
2015-10-06 14:27:17 -04:00
|
|
|
|
2023-10-05 14:00:34 -04:00
|
|
|
RUN npm install -g nodemon@1.17.3
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
COPY package.json /usr/src/app/
|
|
|
|
COPY . /usr/src/app
|
2015-10-15 09:01:34 -04:00
|
|
|
RUN npm install
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
# Use nodemon to start app, note this will break if main file no longer named server.js.
|
|
|
|
CMD [ "nodemon", "server.js" ]
|