y4shg commited on
Commit
88c3d91
·
verified ·
1 Parent(s): 699cdb6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM node:20-slim
2
 
3
- RUN npm install -g omniroute
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,4 +12,6 @@ ENV PORT=7860
12
 
13
  EXPOSE 7860
14
 
15
- CMD ["/bin/bash", "-c", "/sync.sh & omniroute --port 7860"]
 
 
 
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
 
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"]