Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +10 -5
Dockerfile
CHANGED
|
@@ -10,10 +10,15 @@ COPY start.sh /app/start.sh
|
|
| 10 |
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
RUN
|
| 15 |
-
chmod +x /app/
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
# Use absolute path in CMD
|
| 19 |
CMD ["/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"]
|