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