FROM python:3.12

# set the working directory
WORKDIR /app

# install dependencies
COPY ./requirements.txt /app
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# copy the scripts to the folder
COPY . /app

# start the server
CMD ["gunicorn", "--bind", "0.0.0.0:80", "--timeout", "30", "--workers", "1", "emb_gte-large_flask:app"]
