File size: 544 Bytes
3e16868
 
 
6a01846
b6227b0
 
6a01846
618f8da
3e16868
6a01846
3e16868
 
6a01846
3e16868
 
6a01846
3e16868
 
6a01846
3e16868
 
6a01846
14fb632
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set a writable cache directory for the numba library
ENV NUMBA_CACHE_DIR=/tmp

# Install ffmpeg
RUN apt-get update && apt-get install -y ffmpeg

# Set the working directory
WORKDIR /code

# Copy requirements
COPY ./requirements.txt /code/requirements.txt

# Install packages
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy app
COPY ./app /code/app

# Run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "10000"]