Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03d8ca8
commit a3c8b57
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM node:4 | ||
FROM node:6 | ||
|
||
WORKDIR /opt | ||
EXPOSE 1337 | ||
VOLUME ["/opt/data"] | ||
CMD ["node", "index.js"] | ||
|
||
ADD package.json /opt/package.json | ||
RUN cd /opt && npm install | ||
|
||
ADD . /opt | ||
RUN npm install && \ | ||
npm run build && \ | ||
npm prune --production && \ | ||
npm cache clean | ||
|
||
RUN npm run build | ||
CMD ["npm", "start"] |