Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from python:3.10-slim
|
| 2 |
+
|
| 3 |
+
workdir /app
|
| 4 |
+
copy requirements.txt .
|
| 5 |
+
run pip install -r requirements.txt
|
| 6 |
+
|
| 7 |
+
# pick a non-privileged port
|
| 8 |
+
expose 5678
|
| 9 |
+
|
| 10 |
+
copy . .
|
| 11 |
+
cmd [ "python", "my_tcp_server.py" ]
|