summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.dockerignore2
-rw-r--r--Dockerfile7
2 files changed, 9 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 00000000..61b7ef66
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,2 @@
+node_modules/
+db/
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..320c3836
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,7 @@
+FROM node:16.10.0
+WORKDIR /usr/src/fosscord-server/
+COPY . .
+WORKDIR /usr/src/fosscord-server/bundle
+RUN npm run setup
+EXPOSE 3001
+CMD [ "npm", "run", "start:bundle" ]
\ No newline at end of file