emb-rep / Dockerfile
abadesalex's picture
change firectoty roog gensim
2a00cb3
raw
history blame
493 Bytes
# Use Python 3.9 as base image
FROM python:3.9
# Set the environment variable for Gensim data directory
ENV GENSIM_DATA_DIR=/app/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"]