lightspeed commited on
Commit
c24939e
·
verified ·
1 Parent(s): 5d786b7

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -10
  2. start.sh +8 -1
Dockerfile CHANGED
@@ -2,23 +2,24 @@ FROM dairoot/grok-gateway:latest as gateway
2
  FROM dairoot/cf5s:latest as cf5s
3
 
4
  FROM debian:bullseye-slim
5
- COPY --from=gateway /app /app/gateway
6
- COPY --from=cf5s /app /app/cf5s
 
 
 
 
 
 
 
7
 
8
  COPY .env /app/.env
9
  COPY start.sh /app/start.sh
10
 
11
  WORKDIR /app
12
 
13
- # Make all executables actually executable and list contents for debugging
14
- RUN chmod +x /app/start.sh && \
15
- chmod +x /app/gateway/gateway && \
16
- chmod +x /app/cf5s/cf5s && \
17
  ls -la /app/gateway && \
18
  ls -la /app/cf5s
19
 
20
- # Use absolute paths in start.sh
21
- RUN echo '#!/bin/bash\ncd /app/gateway && /app/gateway/gateway &\ncd /app/cf5s && /app/cf5s/cf5s' > /app/start.sh && \
22
- chmod +x /app/start.sh
23
-
24
  CMD ["/app/start.sh"]
 
2
  FROM dairoot/cf5s:latest as cf5s
3
 
4
  FROM debian:bullseye-slim
5
+
6
+ # Debug: Check the structure of base images
7
+ RUN mkdir -p /app/gateway /app/cf5s
8
+ COPY --from=gateway /app/* /app/gateway/
9
+ COPY --from=cf5s /app/* /app/cf5s/
10
+
11
+ # Debug: List contents to verify
12
+ RUN ls -la /app/gateway && \
13
+ ls -la /app/cf5s
14
 
15
  COPY .env /app/.env
16
  COPY start.sh /app/start.sh
17
 
18
  WORKDIR /app
19
 
20
+ # Make executables actually executable
21
+ RUN find /app -type f -exec chmod +x {} \; && \
 
 
22
  ls -la /app/gateway && \
23
  ls -la /app/cf5s
24
 
 
 
 
 
25
  CMD ["/app/start.sh"]
start.sh CHANGED
@@ -1,3 +1,10 @@
1
  #!/bin/bash
 
 
 
 
 
 
 
2
  cd /app/gateway && ./gateway &
3
- cd /app/cf5s && ./cf5s
 
1
  #!/bin/bash
2
+ set -x # Enable debug mode
3
+
4
+ # List contents of directories
5
+ ls -la /app/gateway
6
+ ls -la /app/cf5s
7
+
8
+ # Start services
9
  cd /app/gateway && ./gateway &
10
+ cd /app/cf5s && ./cf5s