summaryrefslogtreecommitdiff
path: root/vendor/Dockerfile/Node-alpine.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/Dockerfile/Node-alpine.Dockerfile')
-rw-r--r--vendor/Dockerfile/Node-alpine.Dockerfile21
1 files changed, 12 insertions, 9 deletions
diff --git a/vendor/Dockerfile/Node-alpine.Dockerfile b/vendor/Dockerfile/Node-alpine.Dockerfile
index 9776b1336b5..24f92dd92cd 100644
--- a/vendor/Dockerfile/Node-alpine.Dockerfile
+++ b/vendor/Dockerfile/Node-alpine.Dockerfile
@@ -1,14 +1,17 @@
-FROM node:7.9-alpine
+FROM node:10.6-alpine
-WORKDIR /usr/src/app
+# Uncomment if use of `process.dlopen` is necessary
+# apk add --no-cache libc6-compat
+
+ENV PORT 8080
+EXPOSE 8080 # replace this with your application's default port, if necessary
-ARG NODE_ENV
+ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
-COPY package.json /usr/src/app/
-RUN npm install && npm cache clean
-COPY . /usr/src/app
-CMD [ "npm", "start" ]
+WORKDIR /usr/src/app
+COPY package.json .
+RUN npm install
+COPY . .
-# replace this with your application's default port
-EXPOSE 8888
+CMD [ "npm", "start" ]