Skip to content

Commit

Permalink
fix: 🔧 docker api use GitHub repository (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
odulcy-mindee authored Feb 15, 2023
1 parent b29f3a2 commit 9e254fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,4 @@ jobs:
run: wget --spider --tries=12 http://localhost:8080/docs
- name: Run docker test
run: |
docker cp api/requirements-dev.txt api_web_1:/app/requirements-dev.txt
docker-compose -f api/docker-compose.yml exec -T web pip install -r requirements-dev.txt
docker cp api/tests api_web_1:/app/tests
docker-compose -f api/docker-compose.yml exec -T web pytest tests/
docker-compose -f api/docker-compose.yml exec --no-TTY web pytest tests/
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH "${PYTHONPATH}:/app"

RUN apt-get update \
&& apt-get install --no-install-recommends ffmpeg libsm6 libxext6 make -y \
&& apt-get install --no-install-recommends git ffmpeg libsm6 libxext6 make -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 1 addition & 0 deletions api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '3.7'

services:
web:
container_name: api_web
build:
context: .
dockerfile: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "Apache-2.0"
python = ">=3.8.2,<3.11" # pypdfium2 needs a python version above 3.8.2
tensorflow = ">=2.9.0,<3.0.0"
tensorflow-addons = ">=0.17.1"
python-doctr = { version = ">=0.7.0", extras = ['tf'] }
python-doctr = {git = "https://github.com/mindee/doctr.git", extras = ['tf'], branch = "main" }
# Fastapi: minimum version required to avoid pydantic error
# cf. https://github.com/tiangolo/fastapi/issues/4168
fastapi = ">=0.73.0"
Expand Down

0 comments on commit 9e254fe

Please sign in to comment.