Added Dockerfile.
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM node:8.15.0 as build
|
||||
|
||||
WORKDIR /ngn4
|
||||
|
||||
COPY . /ngn4/
|
||||
RUN rm -rf data node_modules .git Dockerfile screenlog.0 access.log
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM node:8.15.0 as dist
|
||||
|
||||
COPY --from=0 /ngn4 /ngn4
|
||||
WORKDIR /ngn4
|
||||
|
||||
CMD ["/usr/local/bin/node", "."]
|
||||
Reference in New Issue
Block a user