-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 958 Bytes
/
Dockerfile
File metadata and controls
45 lines (34 loc) · 958 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
34
35
36
37
38
39
40
41
42
43
44
45
FROM python:3.12-slim-bookworm
# Build arguments for version info (set by CI/CD)
ARG BUILD_VERSION
ARG GIT_SHA
ARG GIT_BRANCH
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
BUILD_VERSION=${BUILD_VERSION} \
GIT_SHA=${GIT_SHA} \
GIT_BRANCH=${GIT_BRANCH}
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
tzdata \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.lock /app/requirements.lock
RUN pip install --require-hashes -r /app/requirements.lock
COPY src /app/src
COPY entrypoint.sh /entrypoint.sh
COPY README.md LICENSE CHANGELOG.md /app/
COPY icon.png /app/icon.png
RUN chmod +x /entrypoint.sh
ENV CONFIG_PATH=/config/playbook.yaml \
DRY_RUN=false \
GUI_ENABLED=true \
GUI_PORT=8765 \
GUI_HOST=0.0.0.0
ENV PYTHONPATH=/app/src
# Expose GUI port
EXPOSE 8765
ENTRYPOINT ["/entrypoint.sh"]