-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.deploy
More file actions
39 lines (33 loc) · 1.09 KB
/
Dockerfile.deploy
File metadata and controls
39 lines (33 loc) · 1.09 KB
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
34
35
36
37
38
39
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
ARG DJANGO_DEBUG=
ARG R2_BUCKET_NAME=
ARG R2_ACCESS_KEY=
ENV DJANGO_DEBUG=${DJANGO_DEBUG}
ENV R2_BUCKET_NAME=${R2_BUCKET_NAME}
ENV R2_ACCESS_KEY=${R2_ACCESS_KEY}
ENV CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP=1
ENV CELERY_BROKER_URL=redis://host.docker.internal:6379/3
ENV MAX_PAGE_SIZE=50
ENV DEFAULT_PAGE_SIZE=50
ENV TEMPERATURE=0.0
ENV INPUT_TOKEN_LIMIT=12500
ENV USE_S3_STORAGE=1
ENV CTIBUTLER_BASE_URL=https://api.ctibutler.com
ENV VULMATCH_BASE_URL=http://api.vulmatch.com
ENV ARANGODB_USERNAME=siemrules
ENV ARANGODB_HOST_URL=http://host.docker.internal:8529
ENV POSTGRES_USER=siemrules
ENV POSTGRES_DB=siemrules_database
ENV POSTGRES_HOST=host.docker.internal
ENV R2_ENDPOINT_URL=https://34fe0652772b226d5f06050bf5050738.r2.cloudflarestorage.com
ENV R2_CUSTOM_DOMAIN=""
ENV SRO_OBJECTS_ONLY_LATEST=False
WORKDIR /usr/src/app
COPY install_deps.sh .
RUN --mount=type=cache,target=/var/cache/apt/archives/ \
bash install_deps.sh
COPY requirements.txt ./
RUN --mount=type=cache,target=/root/.cache \
pip install -r requirements.txt
COPY . /usr/src/app