SoUmNerd commited on
Commit
a3fdcb6
·
1 Parent(s): b887ba2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 flask
6
  RUN curl https://get.modular.com | \
7
  MODULAR_AUTH=mut_e87f7861fb9a4d4aa311afb0491b0398 sh -
8
 
9
  RUN modular install mojo
10
 
11
  COPY . .
12
- RUN echo "aaa"
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"]