File size: 366 Bytes
4ec23ab
 
 
 
a3fdcb6
c348da1
 
6bf5a4a
4ec23ab
 
 
5343f2b
1
2
3
4
5
6
7
8
9
10
11
12
FROM ubuntu:latest

RUN apt-get update
RUN apt-get install -y curl && apt-get install -y python3 && apt-get install -y python3-pip
RUN pip install fastapi uvicorn pydantic
RUN curl https://get.modular.com | \
MODULAR_AUTH=mut_e87f7861fb9a4d4aa311afb0491b0398 sh -

RUN modular install mojo

COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]