l3aalteshuva commited on
Commit
a108965
β€’
1 Parent(s): 0eca810

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +60 -0
Dockerfile ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Make sure you have git-lfs installed (https://git-lfs.com)
2
+ git lfs install
3
+ git clone https://huggingface.co/s2w-ai/DarkBERT
4
+
5
+ # if you want to clone without large files – just their pointers
6
+ # prepend your git clone with the following env var:
7
+ GIT_LFS_SKIP_SMUDGE=1
8
+
9
+ 🐳 Get started with your docker Space!
10
+
11
+ Your new space has been created, follow these steps to get started (or read our full documentation )
12
+
13
+ Start by cloning this repo by using:
14
+
15
+
16
+
17
+ git clone https://huggingface.co/spaces/l3aalteshuva/eviI-Bert
18
+
19
+
20
+ Create your Dockerfile file:
21
+
22
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
23
+ # you will also find guides on how best to write your Dockerfile
24
+
25
+ FROM python:3.9
26
+
27
+ WORKDIR /code
28
+
29
+ COPY ./requirements.txt /code/requirements.txt
30
+
31
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
32
+
33
+ COPY . .
34
+
35
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
36
+
37
+ Then commit and push:
38
+
39
+
40
+
41
+ git add Dockerfile
42
+
43
+
44
+ git commit -m masta
45
+
46
+
47
+ git push
48
+
49
+
50
+ (Hint: Create the Dockerfile file right in your browser alternatively)
51
+
52
+ πŸ€— Your app should be running on this page after a few moments !
53
+
54
+ App port
55
+
56
+ Your Docker Space needs to listen on port 7860
57
+
58
+ Documentation
59
+
60
+ Check out the full documentation of docker Spaces here