Better cache in dockerfile
This commit is contained in:
parent
3396329c19
commit
1b58965e8c
|
@ -15,6 +15,8 @@ test_api:
|
||||||
image: funkwhale/funkwhale:base
|
image: funkwhale/funkwhale:base
|
||||||
before_script:
|
before_script:
|
||||||
- cd api
|
- cd api
|
||||||
|
- pip install -r requirements/base.txt
|
||||||
|
- pip install -r requirements/local.txt
|
||||||
- pip install -r requirements/test.txt
|
- pip install -r requirements/test.txt
|
||||||
script:
|
script:
|
||||||
- pytest
|
- pytest
|
||||||
|
|
|
@ -8,7 +8,9 @@ COPY ./requirements.apt /requirements.apt
|
||||||
RUN apt-get update -qq && grep "^[^#;]" requirements.apt | xargs apt-get install -y
|
RUN apt-get update -qq && grep "^[^#;]" requirements.apt | xargs apt-get install -y
|
||||||
|
|
||||||
|
|
||||||
COPY ./requirements /requirements
|
COPY ./requirements/base.txt /requirements
|
||||||
|
RUN pip install -r /requirements/base.txt
|
||||||
|
COPY ./requirements/production.txt /requirements
|
||||||
RUN pip install -r /requirements/production.txt
|
RUN pip install -r /requirements/production.txt
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
Loading…
Reference in New Issue