Skip to content

Commit 619adf1

Browse files
author
lrochette
committed
Add entrypoint
Signed-off-by: lrochette <[email protected]>
1 parent 754c981 commit 619adf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

incubating/argocd-app-status/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
FROM python:3.13.0-slim-bookworm AS builder
33
WORKDIR /app
44
COPY requirements.txt requirements.txt
5-
RUN pip3 install -r requirements.txt
65
COPY queries queries/
76
COPY argocd_app_status.py argocd_app_status.py
87

9-
RUN pip3 install pyinstaller
10-
RUN pyinstaller --onefile argocd_app_status.py
8+
RUN pip3 install -r requirements.txt
9+
RUN pip3 install pyinstaller
10+
RUN pyinstaller --onefile argocd_app_status.py
1111

1212
# stage 2 : Prod
1313
FROM scratch
@@ -18,5 +18,5 @@ USER codefresh
1818

1919
WORKDIR /app
2020
COPY queries queries/
21-
COPY dist/argocd_app_status argocd_app_status
22-
CMD argocd_app_status
21+
COPY --from=builder dist/argocd_app_status argocd_app_status
22+
ENTRYPOINT ["/app/argocd_app_status"]

0 commit comments

Comments
 (0)