aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ec679ff
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM node:alpine
+LABEL maintainer="[email protected]"
+WORKDIR /usr/src/app
+#RUN apk add --no-cache tini # Or `docker run --init`
+#ENTRYPOINT ["/sbin/tini", "--"]
+ENV NODE_ENV=production
+ENV PORT=8080
+EXPOSE $PORT
+#USER node
+#CMD ["npm", "start"]
+CMD ["node", "app.js"]
+
+COPY package*.json ./
+#RUN npm install
+RUN npm ci --only=production
+
+COPY . .