matdmiller commited on
Commit
9d1797e
·
1 Parent(s): cc92721

added dockerfile

Browse files
.ipynb_checkpoints/Dockerfile-checkpoint ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.11
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ COPY . .
13
+
14
+ RUN git clone https://github.com/AnswerDotAI/fasthtml.git
15
+
16
+ RUN pip install ./fasthtml/
17
+
18
+ CMD ["uvicorn", "fasthtml.examples.db_app:app", "--host", "0.0.0.0", "--port", "7860"]
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Fasthtml
3
+ emoji: 🦀
4
+ colorFrom: gray
5
+ colorTo: indigo
6
+ sdk: docker
7
+ pinned: false
8
+ license: apache-2.0
9
+ ---
10
+
11
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
.ipynb_checkpoints/requirements-checkpoint.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fastcore
2
+ python-dateutil
3
+ starlette
4
+ oauthlib
5
+ itsdangerous
6
+ uvicorn
7
+ httpx
8
+ fastlite
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.11
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ COPY . .
13
+
14
+ RUN git clone https://github.com/AnswerDotAI/fasthtml.git
15
+
16
+ RUN pip install ./fasthtml/
17
+
18
+ CMD ["uvicorn", "fasthtml.examples.db_app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fastcore
2
+ python-dateutil
3
+ starlette
4
+ oauthlib
5
+ itsdangerous
6
+ uvicorn
7
+ httpx
8
+ fastlite