File size: 378 Bytes
e9767e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pull python base image
FROM python:3.10

ADD requirements.txt requirements.txt

ADD *.whl .

# update pip
RUN pip install --upgrade pip

# install dependencies
RUN pip install -r requirements.txt

RUN rm *.whl

# copy application files
COPY app/. app/.

# expose port for application
EXPOSE 8001

# start fastapi application
CMD ["python", "app/main.py"]