Skip to content

Commit ddf3e76

Browse files
author
lrochette
committed
back to multi
Signed-off-by: lrochette <[email protected]>
1 parent 31e8239 commit ddf3e76

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# stage 1 Build
2+
# Bookworm is debian based
23
FROM python:3.13.0-slim-bookworm AS builder
34
WORKDIR /app
45
COPY requirements.txt requirements.txt
@@ -8,16 +9,16 @@ COPY argocd_app_status.py argocd_app_status.py
89
RUN apt-get update && apt-get install -y binutils
910
RUN pip3 install -r requirements.txt
1011
RUN 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

2021
WORKDIR /app
2122
COPY queries queries/
2223
COPY --from=builder /app/dist/argocd_app_status argocd_app_status
23-
CMD ["/app/argocd_app_status"]
24+
ENTRYPOINT ["/app/argocd_app_status"]

incubating/argocd-app-status/step.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ spec:
9696
- '[[ $key ]]=[[ $val ]]'
9797
[[- end ]]
9898
commands:
99-
99+
- cd /app
100+
- python3 argocd_app_status
100101
delimiters:
101102
left: '[['
102103
right: ']]'

0 commit comments

Comments
 (0)