-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (20 loc) · 608 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.10.10
# Run updates and install ffmpeg
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy and install the requirements
COPY ./requirements.txt /requirements.txt
# Pip install the dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /requirements.txt
# Copy the current directory contents into the container at /app
COPY main.py /app/main.py
COPY model.py /app/model.py
# Set the working directory to /app
WORKDIR /app
# Expose port 8000
EXPOSE 8000
# Run the app
CMD uvicorn main:app --host 0.0.0.0