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 11# stage 1 Build
2+ # Bookworm is debian based
23FROM python:3.13.0-slim-bookworm AS builder
34WORKDIR /app
45COPY requirements.txt requirements.txt
@@ -8,16 +9,16 @@ COPY argocd_app_status.py argocd_app_status.py
89RUN apt-get update && apt-get install -y binutils
910RUN pip3 install -r requirements.txt
1011RUN pip3 install pyinstaller
11- RUN pyinstaller --onefile argocd_app_status.py
12+ RUN pyinstaller --strip -- onefile argocd_app_status.py
1213
1314# stage 2 : Prod
14- FROM alpine:3.20.3
15+ FROM debian:bookworm-slim
1516
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
1920
2021WORKDIR /app
2122COPY queries queries/
2223COPY --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 9696 - '[[ $key ]]=[[ $val ]]'
9797 [[- end ]]
9898 commands:
99-
99+ - cd /app
100+ - python3 argocd_app_status
100101 delimiters :
101102 left : ' [['
102103 right : ' ]]'
You can’t perform that action at this time.
0 commit comments