Spaces:
Sleeping
Sleeping
Change to docker space
Browse files- .gitignore +6 -1
- Dockerfile +21 -0
- README.md +1 -4
- requirements.txt +0 -1
.gitignore
CHANGED
@@ -49,4 +49,9 @@ Thumbs.db
|
|
49 |
*.wmv
|
50 |
|
51 |
# keys
|
52 |
-
keys.env
|
|
|
|
|
|
|
|
|
|
|
|
49 |
*.wmv
|
50 |
|
51 |
# keys
|
52 |
+
keys.env
|
53 |
+
|
54 |
+
# push credentials
|
55 |
+
push_credentials.py
|
56 |
+
credentials.csv
|
57 |
+
.~lock.credentials.csv#
|
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
WORKDIR /usr/src/app
|
5 |
+
|
6 |
+
# Copy the files
|
7 |
+
COPY app.py .
|
8 |
+
COPY lambdas.py .
|
9 |
+
COPY requirements.txt .
|
10 |
+
|
11 |
+
# Installations
|
12 |
+
RUN apt-get update && apt-get install libzbar0 -y && pip install pyzbar
|
13 |
+
RUN pip install --no-cache-dir --upgrade requirements.txt
|
14 |
+
RUN pip install --no-cache-dir gradio
|
15 |
+
|
16 |
+
# Expose
|
17 |
+
EXPOSE 7860
|
18 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
19 |
+
|
20 |
+
# Run the app
|
21 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -3,10 +3,7 @@ title: Cloud Inference Space
|
|
3 |
emoji: 🐠
|
4 |
colorFrom: purple
|
5 |
colorTo: pink
|
6 |
-
sdk:
|
7 |
-
sdk_version: 4.33.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
3 |
emoji: 🐠
|
4 |
colorFrom: purple
|
5 |
colorTo: pink
|
6 |
+
sdk: docker
|
|
|
|
|
|
|
7 |
---
|
8 |
|
9 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
libzbar-cffi
|
2 |
pyzbar
|
3 |
pillow
|
4 |
boto3
|
|
|
|
|
1 |
pyzbar
|
2 |
pillow
|
3 |
boto3
|