瀏覽代碼

dockerfile

GitUser 2 年之前
父節點
當前提交
e875350b03
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Dockerfile.txt

+ 9 - 0
Dockerfile.txt

@@ -0,0 +1,9 @@
+from python3.10-slim
+
+RUN pip install --no-cache-dir --upgrade pip \
+  && pip install --no-cache-dir -r requests
+
+COPY main.py
+CMD ["python3","./main.py"]
+EXPOSE 8000
+