Browse Source

dockerfile

root 2 years ago
parent
commit
d530a72f6b
2 changed files with 12 additions and 0 deletions
  1. 11 0
      Dockerfile
  2. 1 0
      requirements.txt

+ 11 - 0
Dockerfile

@@ -0,0 +1,11 @@
+FROM python:3.10-slim
+
+COPY requirements.txt /
+
+RUN pip install --no-cache-dir --upgrade pip \
+  && pip install --no-cache-dir -r requirements.txt
+
+COPY server.py .
+CMD ["python3","./server.py"]
+EXPOSE 8000
+

+ 1 - 0
requirements.txt

@@ -0,0 +1 @@
+requests