Split examples
This commit is contained in:
parent
b4492da2e6
commit
df1c9418ee
11 changed files with 401 additions and 252 deletions
22
examples/complex/Dockerfile.development
Normal file
22
examples/complex/Dockerfile.development
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FROM python:3.8.12-slim-bullseye
|
||||
|
||||
ENV ENVIRONMENT development
|
||||
|
||||
VOLUME /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update &&\
|
||||
apt-get install build-essential -y &&\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir --upgrade pip &&\
|
||||
python3 -m pip install --no-cache-dir en-core-web-sm@https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.3.0/en_core_web_sm-3.3.0-py3-none-any.whl
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
VOLUME /dependencies
|
||||
|
||||
CMD ["/bin/bash", "-c", "python3 -m pip install -e /dependencies/sus && python3 -m uvicorn --reload --host 0.0.0.0 --port 5000 main:app"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue