aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-20 15:14:15 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-20 15:14:15 +0000
commitf5025a42636f75a4e1c519f97ad62920c30278ba (patch)
tree8a1216c52609c7ce053920c766b8027b1e7e04cb /Dockerfile
parent3f91a121b33151cd466de930d0e68bdf87f4d19e (diff)
Dockerise application
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6ccd424
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+FROM node:alpine
+
+WORKDIR /srv/node/app
+
+COPY package*.json ./
+
+RUN npm i -g typescript\
+ && npm ci --only=production
+
+COPY . .
+
+RUN tsc
+
+COPY --chown=node:node . .
+
+EXPOSE 3000
+
+USER node
+
+CMD [ "node", "build/index.js" ]