aBER0724 commited on
Commit
e68c1a8
·
verified ·
1 Parent(s): 0d49cf8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -1,10 +1,16 @@
1
  FROM ghcr.io/ptbsare/mcp-proxy-server/mcp-proxy-server:latest
2
 
3
- COPY sync_data.sh sync_data.sh
4
 
5
  RUN chmod -R 777 /mcp-proxy-server/config && \
6
- mkdir /tools && \
7
  chmod -R 777 /tools && \
8
- sed -i "1r sync_data.sh" ./start.sh
 
 
 
 
9
 
10
- EXPOSE 3663
 
 
 
1
  FROM ghcr.io/ptbsare/mcp-proxy-server/mcp-proxy-server:latest
2
 
3
+ COPY sync_data.sh /sync_data.sh
4
 
5
  RUN chmod -R 777 /mcp-proxy-server/config && \
6
+ mkdir -p /tools && \
7
  chmod -R 777 /tools && \
8
+ chmod +x /sync_data.sh && \
9
+ echo '#!/bin/bash' > /start_with_sync.sh && \
10
+ echo 'source /sync_data.sh &' >> /start_with_sync.sh && \
11
+ echo 'exec "$@"' >> /start_with_sync.sh && \
12
+ chmod +x /start_with_sync.sh
13
 
14
+ EXPOSE 3663
15
+
16
+ ENTRYPOINT ["/start_with_sync.sh"]