gcharanteja Qwen-Coder commited on
Commit ·
ee6a4fb
1
Parent(s): c9f58f1
Fix: Add port forwarding from 3000 to 7860
Browse filesCo-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Dockerfile +9 -5
Dockerfile
CHANGED
|
@@ -3,10 +3,14 @@
|
|
| 3 |
|
| 4 |
FROM maxxcarl/uptime-monitoring-api:latest
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
| 3 |
|
| 4 |
FROM maxxcarl/uptime-monitoring-api:latest
|
| 5 |
|
| 6 |
+
USER root
|
| 7 |
+
|
| 8 |
+
# Install socat for port forwarding
|
| 9 |
+
RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
USER appuser
|
| 12 |
+
|
| 13 |
+
EXPOSE 7860
|
| 14 |
|
| 15 |
+
# Start the app and forward port 3000 to 7860
|
| 16 |
+
CMD sh -c "rust-api-server & socat TCP-LISTEN:7860,fork TCP:localhost:3000"
|