Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
|
@@ -2,13 +2,11 @@ FROM ubuntu:latest
|
|
| 2 |
|
| 3 |
RUN apt-get update
|
| 4 |
RUN apt-get install -y curl && apt-get install -y python3 && apt-get install -y python3-pip
|
| 5 |
-
RUN pip install
|
| 6 |
RUN curl https://get.modular.com | \
|
| 7 |
MODULAR_AUTH=mut_e87f7861fb9a4d4aa311afb0491b0398 sh -
|
| 8 |
|
| 9 |
RUN modular install mojo
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
-
|
| 13 |
-
RUN python3 main.py
|
| 14 |
-
RUN echo "bbb"
|
|
|
|
| 2 |
|
| 3 |
RUN apt-get update
|
| 4 |
RUN apt-get install -y curl && apt-get install -y python3 && apt-get install -y python3-pip
|
| 5 |
+
RUN pip install fastapi uvicorn pydantic
|
| 6 |
RUN curl https://get.modular.com | \
|
| 7 |
MODULAR_AUTH=mut_e87f7861fb9a4d4aa311afb0491b0398 sh -
|
| 8 |
|
| 9 |
RUN modular install mojo
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|