@@ -6,6 +6,8 @@ ARG BASE_IMAGE=docker.io/library/ubuntu:24.04@sha256:80dd3c3b9c6cecb9f1667e9290b
6
6
# ###################################################################################################
7
7
FROM docker.io/library/golang:1.24.1@sha256:c5adecdb7b3f8c5ca3c88648a861882849cc8b02fed68ece31e25de88ad13418 AS builder
8
8
9
+ WORKDIR /tmp
10
+
9
11
RUN echo 'deb http://archive.debian.org/debian buster-backports main' >> /etc/apt/sources.list
10
12
11
13
RUN apt-get update && apt-get install --no-install-recommends -y \
@@ -23,8 +25,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
23
25
apt-get clean && \
24
26
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
25
27
26
- WORKDIR /tmp
27
-
28
28
COPY hack/install.sh hack/tool-versions.sh ./
29
29
COPY hack/installers installers
30
30
@@ -40,8 +40,8 @@ LABEL org.opencontainers.image.source="https://github.com/argoproj/argo-cd"
40
40
41
41
USER root
42
42
43
- ENV ARGOCD_USER_ID=999
44
- ENV DEBIAN_FRONTEND=noninteractive
43
+ ENV ARGOCD_USER_ID=999 \
44
+ DEBIAN_FRONTEND=noninteractive
45
45
46
46
RUN groupadd -g $ARGOCD_USER_ID argocd && \
47
47
useradd -r -u $ARGOCD_USER_ID -g argocd argocd && \
@@ -55,11 +55,13 @@ RUN groupadd -g $ARGOCD_USER_ID argocd && \
55
55
apt-get clean && \
56
56
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
57
57
58
- COPY hack/gpg-wrapper.sh /usr/local/bin/gpg-wrapper.sh
59
- COPY hack/git-verify-wrapper.sh /usr/local/bin/git-verify-wrapper.sh
58
+ COPY hack/gpg-wrapper.sh \
59
+ hack/git-verify-wrapper.sh \
60
+ entrypoint.sh \
61
+ /usr/local/bin/
60
62
COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm
61
63
COPY --from=builder /usr/local/bin/kustomize /usr/local/bin/kustomize
62
- COPY entrypoint.sh /usr/local/bin/entrypoint.sh
64
+
63
65
# keep uid_entrypoint.sh for backward compatibility
64
66
RUN ln -s /usr/local/bin/entrypoint.sh /usr/local/bin/uid_entrypoint.sh
65
67
@@ -111,13 +113,13 @@ RUN go mod download
111
113
# Perform the build
112
114
COPY . .
113
115
COPY --from=argocd-ui /src/dist/app /go/src/github.com/argoproj/argo-cd/ui/dist/app
114
- ARG TARGETOS
115
- ARG TARGETARCH
116
+ ARG TARGETOS \
117
+ TARGETARCH
116
118
# These build args are optional; if not specified the defaults will be taken from the Makefile
117
- ARG GIT_TAG
118
- ARG BUILD_DATE
119
- ARG GIT_TREE_STATE
120
- ARG GIT_COMMIT
119
+ ARG GIT_TAG \
120
+ BUILD_DATE \
121
+ GIT_TREE_STATE \
122
+ GIT_COMMIT
121
123
RUN GIT_COMMIT=$GIT_COMMIT \
122
124
GIT_TREE_STATE=$GIT_TREE_STATE \
123
125
GIT_TAG=$GIT_TAG \
@@ -130,6 +132,7 @@ RUN GIT_COMMIT=$GIT_COMMIT \
130
132
# Final image
131
133
# ###################################################################################################
132
134
FROM argocd-base
135
+ ENTRYPOINT ["/usr/bin/tini" , "--" ]
133
136
COPY --from=argocd-build /go/src/github.com/argoproj/argo-cd/dist/argocd* /usr/local/bin/
134
137
135
138
USER root
@@ -144,4 +147,3 @@ RUN ln -s /usr/local/bin/argocd /usr/local/bin/argocd-server && \
144
147
ln -s /usr/local/bin/argocd /usr/local/bin/argocd-commit-server
145
148
146
149
USER $ARGOCD_USER_ID
147
- ENTRYPOINT ["/usr/bin/tini" , "--" ]
0 commit comments