lfoppiano commited on
Commit
af93516
1 Parent(s): 452072e

update docker build

Browse files
Files changed (2) hide show
  1. .github/workflows/ci-build.yml +2 -2
  2. Dockerfile +3 -6
.github/workflows/ci-build.yml CHANGED
@@ -35,11 +35,11 @@ jobs:
35
  docker-build-documentqa:
36
  needs: [build]
37
 
38
- runs-on: self-hosted
39
 
40
  steps:
41
  - uses: actions/checkout@v2
42
  - name: Build the Docker image
43
- run: docker build . --file Dockerfile.qa --tag lfoppiano/documentqa:develop-latest
44
  - name: Cleanup older than 24h images and containers
45
  run: docker system prune --filter "until=24h" --force
 
35
  docker-build-documentqa:
36
  needs: [build]
37
 
38
+ runs-on: ubuntu-latest
39
 
40
  steps:
41
  - uses: actions/checkout@v2
42
  - name: Build the Docker image
43
+ run: docker build . --file Dockerfile --tag lfoppiano/documentqa:develop
44
  - name: Cleanup older than 24h images and containers
45
  run: docker system prune --filter "until=24h" --force
Dockerfile CHANGED
@@ -11,13 +11,10 @@ RUN apt-get update && apt-get install -y \
11
 
12
  COPY requirements.txt .
13
 
14
- RUN pip3 install -r requirements.txt --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
15
 
16
- COPY grobid_magneto/ grobid_magneto
17
- COPY commons/ commons
18
- COPY resources/nims_proxy.cer .
19
- COPY tiktoken_cache ./tiktoken_cache
20
- COPY grobid_magneto/document_qa/.streamlit ./.streamlit
21
 
22
  # extract version
23
  COPY .git ./.git
 
11
 
12
  COPY requirements.txt .
13
 
14
+ RUN pip3 install -r requirements.txt
15
 
16
+ COPY .streamlit ./.streamlit
17
+ COPY *.py .
 
 
 
18
 
19
  # extract version
20
  COPY .git ./.git