mirror of
https://github.com/azaion/detections.git
synced 2026-04-26 16:46:31 +00:00
Added rebuild
This commit is contained in:
@@ -2,9 +2,9 @@ name: detections-e2e
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mock-loader:
|
mock-loader:
|
||||||
build: ./mocks/loader
|
build:
|
||||||
volumes:
|
context: .
|
||||||
- ./fixtures:/models
|
dockerfile: mocks/loader/Dockerfile
|
||||||
networks:
|
networks:
|
||||||
- e2e-net
|
- e2e-net
|
||||||
|
|
||||||
@@ -93,6 +93,7 @@ services:
|
|||||||
- mock-annotations
|
- mock-annotations
|
||||||
environment:
|
environment:
|
||||||
JWT_SECRET: test-secret-e2e-only
|
JWT_SECRET: test-secret-e2e-only
|
||||||
|
MEDIA_DIR: /app/fixtures
|
||||||
volumes:
|
volumes:
|
||||||
- ./fixtures:/media
|
- ./fixtures:/media
|
||||||
- ./results:/results
|
- ./results:/results
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install --no-cache-dir flask gunicorn
|
RUN pip install --no-cache-dir flask gunicorn
|
||||||
COPY app.py .
|
COPY mocks/loader/app.py .
|
||||||
|
COPY fixtures /models
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "1", "--timeout", "120", "app:app"]
|
||||||
|
|||||||
Reference in New Issue
Block a user