aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
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" ]