浏览代码

Add Dockerfile.
docker build and run works just fine

ricet8ur 2 年之前
父节点
当前提交
9f5c13fbf6
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      Dockerfile

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+FROM python:latest
+WORKDIR /app
+COPY requirements.txt ./requirements.txt
+RUN pip install -r requirements.txt
+EXPOSE 8501
+COPY . /app
+ENTRYPOINT ["streamlit", "run"]
+CMD ["./source/main.py"]
+# docker build -t calc-q-factor:latest .
+# docker run -p 8501:8501 calc-q-factor:latest