29 lines
		
	
	
		
			869 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			869 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
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" ] |