File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
incubating/argocd-app-status Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
# stage 1 Build
2
+ # Bookworm is debian based
2
3
FROM python:3.13.0-slim-bookworm AS builder
3
4
WORKDIR /app
4
5
COPY requirements.txt requirements.txt
@@ -8,16 +9,16 @@ COPY argocd_app_status.py argocd_app_status.py
8
9
RUN apt-get update && apt-get install -y binutils
9
10
RUN pip3 install -r requirements.txt
10
11
RUN pip3 install pyinstaller
11
- RUN pyinstaller --onefile argocd_app_status.py
12
+ RUN pyinstaller --strip -- onefile argocd_app_status.py
12
13
13
14
# stage 2 : Prod
14
- FROM alpine:3.20.3
15
+ FROM debian:bookworm-slim
15
16
16
- # USER codefresh
17
- RUN adduser -h /home/codefresh -D -s /usr/ bin/bash codefresh
18
- USER codefresh
17
+ # USER cfuser
18
+ RUN adduser cfuser --home /home/codefresh --shel / bin/sh
19
+ USER cfuser
19
20
20
21
WORKDIR /app
21
22
COPY queries queries/
22
23
COPY --from=builder /app/dist/argocd_app_status argocd_app_status
23
- CMD ["/app/argocd_app_status" ]
24
+ ENTRYPOINT ["/app/argocd_app_status" ]
Original file line number Diff line number Diff line change 96
96
- '[[ $key ]]=[[ $val ]]'
97
97
[[- end ]]
98
98
commands:
99
-
99
+ - cd /app
100
+ - python3 argocd_app_status
100
101
delimiters :
101
102
left : ' [['
102
103
right : ' ]]'
You can’t perform that action at this time.
0 commit comments