-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.test
More file actions
33 lines (28 loc) · 981 Bytes
/
Dockerfile.test
File metadata and controls
33 lines (28 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
ARG DJANGO_DEBUG=
ENV DJANGO_DEBUG=${DJANGO_DEBUG}
ENV CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP=1
ENV CELERY_BROKER_URL=redis://host.docker.internal:6379/3
ENV result_backend=redis://host.docker.internal:6379/1
ENV MAX_PAGE_SIZE=50
ENV DEFAULT_PAGE_SIZE=50
ENV TEMPERATURE=0.0
ENV INPUT_TOKEN_LIMIT=20000
ENV USE_S3_STORAGE=0
ENV CTIBUTLER_BASE_URL=https://api.ctibutler.com
ENV VULMATCH_BASE_URL=https://api.vulmatch.com
ENV ARANGODB_USERNAME=obstracts
ENV ARANGODB_HOST_URL=http://host.docker.internal:8529
ENV POSTGRES_USER=obstracts
ENV POSTGRES_DB=obstracts_database
ENV POSTGRES_HOST=host.docker.internal
ENV SRO_OBJECTS_ONLY_LATEST=False
ENV HISTORY4FEED_EARLIEST_SEARCH_DATE=2024-01-01T00:00:00Z
ENV HISTORY4FEED_WAYBACK_SLEEP_SECONDS=20
ENV HISTORY4FEED_REQUEST_RETRY_COUNT=5
WORKDIR /usr/src/app
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache \
pip install -r requirements.txt
COPY . /usr/src/app