aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile10
-rw-r--r--swarm-compose.yml7
2 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7704009
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM node:slim
+
+EXPOSE 3000
+WORKDIR /app
+COPY package.json package-lock.json ./
+RUN npm ci --only=prod
+
+COPY . ./
+CMD ["npm", "run", "server"]
+
diff --git a/swarm-compose.yml b/swarm-compose.yml
new file mode 100644
index 0000000..555c9ce
--- /dev/null
+++ b/swarm-compose.yml
@@ -0,0 +1,7 @@
+version: '3'
+
+services:
+ backend:
+ image: registry.jan.systems/dnd_converter:latest
+ ports:
+ - 8011:3000