Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
# Create app directory
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
RUN wget https://huggingface.co/spaces/anon5/vit-base-patch32-384-api/raw/main/app.py -O ./app.py
|
7 |
+
RUN pip install flask transformers
|
8 |
+
|
9 |
+
EXPOSE 5000
|
10 |
+
CMD [ "flask ", "--app", "app", "run" ]
|