aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2019-07-17 12:35:46 -0600
committerAdam Hovorka <[email protected]>2019-07-17 12:35:46 -0600
commit6bb3e72df331ef45a69fe7f76ed4b7e7babe021a (patch)
tree9d9a4c95a92517f4d165fb82f2195446e8e68e5c /Dockerfile
Initial commit
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 . .