summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.dockerignore2
-rw-r--r--Dockerfile12
2 files changed, 14 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..57ff971
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,2 @@
+node_modules/
+.next/
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..26a3c4f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+from node:18
+
+workdir /app
+copy package.json .
+copy package-lock.json .
+run npm ci
+copy . .
+
+run npx next build
+
+expose 3000
+entrypoint npx next start