2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
16 # FROM bash:3.1.23-alpine3.20
18 # Ensure compatibility with any script
19 RUN ln -s /usr/local/bin/bash /bin/bash
21 # Install packages available at Alpine repos
22 RUN apk add --no-cache \
40 # Install other dependencies
41 RUN (curl -s https://fluxcd.io/install.sh | bash) && \
42 curl https://github.com/GoogleContainerTools/kpt/releases/download/v1.0.0-beta.44/kpt_linux_amd64 -Lo kpt && \
44 mv kpt /usr/local/bin/
46 # Create new user and log in as it
47 RUN addgroup -g 10000 -S app && \
48 adduser -h /app -s /bin/false -D -u 10000 -S -G app app
53 COPY --chown=app:app scripts/docker-entrypoint.sh /app/scripts/entrypoint.sh
54 COPY --chown=app:app scripts/library /app/scripts/library
56 ENTRYPOINT [ "/app/scripts/entrypoint.sh" ]