[docker] implement docker server for spacy api

parent 78dd215e
......@@ -7,10 +7,14 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /tmp
# Install dependencies:
#COPY /tmp/requirements.txt .
RUN echo "hello" #pip install -r requirements.txt
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# Run the application:
#COPY myapp.py .
#CMD ["python", "myapp.py"]
RUN python -m spacy download en_core_web_trf
RUN python -m spacy download fr_core_news_md
WORKDIR /code
COPY src/main.py .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
services:
spacy-server:
build: ./
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment