Skip to content

Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.

Python

Add: frontend dockerfile

[email protected]52229a8f7a2f
diff --git a/app.dockerfile b/app.dockerfile
new file mode 100644
index 0000000..693addb
--- /dev/null
+++ b/app.dockerfile
@@ -0,0 +1,29 @@
+FROM debian:12
+
+# setting up build variable
+ARG VITE_API_BASE_URL
+ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
+
+# setting up os env
+USER root
+WORKDIR /home/nonroot/client
+RUN groupadd -r nonroot && useradd -r -g nonroot -d /home/nonroot/client -s /bin/bash nonroot
+
+# install node js
+RUN apt-get update && apt-get upgrade -y
+RUN apt-get install -y build-essential software-properties-common curl sudo wget git
+RUN curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
+RUN apt-get install nodejs
+
+# copying devika app client only
+COPY ui /home/nonroot/client/ui
+COPY src /home/nonroot/client/src
+COPY config.toml /home/nonroot/client/
+
+RUN cd ui && npm install && npm install -g npm && npm install -g bun
+RUN chown -R nonroot:nonroot /home/nonroot/client
+
+USER nonroot
+WORKDIR /home/nonroot/client/ui
+
+ENTRYPOINT [ "npx", "bun", "run", "dev", "--", "--host" ]
\ No newline at end of file