Spaces:
Sleeping
Sleeping
Updated README.md and Dockerfile
Browse files- Dockerfile +2 -2
- README.md +1 -1
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
ARG APP_PORT
|
2 |
-
FROM python:3.10
|
3 |
|
4 |
# The two following lines are requirements for the Dev Mode to be functional
|
5 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
@@ -11,4 +11,4 @@ RUN pip install --no-cache-dir --upgrade pip
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
|
13 |
COPY --chown=user ./src /app
|
14 |
-
CMD ["
|
|
|
1 |
ARG APP_PORT
|
2 |
+
FROM python:3.10.12-alpine
|
3 |
|
4 |
# The two following lines are requirements for the Dev Mode to be functional
|
5 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
|
13 |
COPY --chown=user ./src /app
|
14 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", $APP_PORT]
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
title: Musheff Api
|
3 |
-
emoji:
|
4 |
colorFrom: yellow
|
5 |
colorTo: green
|
6 |
sdk: docker
|
|
|
1 |
---
|
2 |
title: Musheff Api
|
3 |
+
emoji: π
|
4 |
colorFrom: yellow
|
5 |
colorTo: green
|
6 |
sdk: docker
|