summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..98c4f35
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM node:18 as build
+
+WORKDIR /app
+COPY package.json yarn.lock .
+
+RUN yarn install --all
+COPY . .
+RUN yarn build
+
+
+FROM busybox:1.36
+RUN adduser -D static
+WORKDIR /home/static
+COPY --from=build /app/public .
+CMD ["busybox", "httpd", "-f", "-v", "-p", "3333"]