Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spacy-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
spacy-server
Commits
23b8f1e3
Verified
Commit
23b8f1e3
authored
Mar 20, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docker] implement docker server for spacy api
parent
78dd215e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
.dockerignore.old
.dockerignore.old
+0
-0
Dockerfile
Dockerfile
+9
-5
docker-compose.yaml
docker-compose.yaml
+3
-0
No files found.
.dockerignore
→
.dockerignore
.old
View file @
23b8f1e3
File moved
Dockerfile
View file @
23b8f1e3
...
...
@@ -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"]
docker-compose.yaml
0 → 100644
View file @
23b8f1e3
services
:
spacy-server
:
build
:
./
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment