summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-07-30 16:12:29 +0200
committerAhmed Abdelhalim <[email protected]>2023-07-30 16:12:29 +0200
commit02fefc48afe713a1f03720cdfb22f438f7b97c0e (patch)
tree34b1f7f292cda2304374c79a050ce6b5f6ab1912 /Dockerfile
parent7c78c839c25f8685020749761d46aab6e488b049 (diff)
Add docker development support
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"]