File size: 523 Bytes
47ffab5
 
5ebef9c
2a00cb3
ed88d29
 
 
2a00cb3
47ffab5
5ebef9c
47ffab5
 
5ebef9c
47ffab5
5ebef9c
47ffab5
c0dff48
2a00cb3
 
b5d531c
2a00cb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use Python 3.9 as base image
FROM python:3.9

# Set the environment variable for Gensim data directory
ENV GENSIM_DATA_DIR=/tmp/gensim-data

RUN mkdir -p /tmp/gensim-data

WORKDIR /code

# Copy the requirements.txt from the FastAPI folder into the working directory in the container
COPY ./FastAPI/requirements.txt /code/requirements.txt

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

COPY ./FastAPI/app /code/app

EXPOSE 8000

CMD ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8000"]