summary refs log tree commit diff
diff options
context:
space:
mode:
authorAshelyn Rose <git@tempest.dev>2023-05-09 03:23:25 -0600
committerAshelyn Rose <git@tempest.dev>2023-05-09 03:23:25 -0600
commit2ad6dc443d026bb49b291f5e27f2f934649e8a4b (patch)
tree6025ccaf088897b8cea2eec8719575cfab6ee638
parentce289294a03a1eb28da48cdb4cddc5124053aaa3 (diff)
docker
-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