y4shg commited on
Commit
03dbf12
·
verified ·
1 Parent(s): 88c3d91

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  FROM node:20-slim
2
 
3
- RUN npm install -g omniroute zod
 
 
 
4
 
5
  # Install git and bash for sync script
6
  RUN apt-get update && apt-get install -y git bash && rm -rf /var/lib/apt/lists/*
@@ -12,6 +15,4 @@ ENV PORT=7860
12
 
13
  EXPOSE 7860
14
 
15
- # sync.sh does the initial pull (blocking), starts background loop, then exits
16
- # omniroute only starts after the DB is in place
17
  CMD ["/bin/bash", "-c", "/sync.sh && omniroute --port 7860"]
 
1
  FROM node:20-slim
2
 
3
+ RUN npm install -g omniroute
4
+
5
+ # Install zod inside omniroute's app directory where Turbopack can find it
6
+ RUN cd /usr/local/lib/node_modules/omniroute/app && npm install zod
7
 
8
  # Install git and bash for sync script
9
  RUN apt-get update && apt-get install -y git bash && rm -rf /var/lib/apt/lists/*
 
15
 
16
  EXPOSE 7860
17
 
 
 
18
  CMD ["/bin/bash", "-c", "/sync.sh && omniroute --port 7860"]