artifacts/oci/app-runner/image-builder-alpine/Dockerfile

23 lines
588 B
Docker
Raw Permalink Normal View History

2023-03-01 14:46:24 +08:00
FROM gcr.io/kaniko-project/executor:debug AS kaniko
2023-03-09 16:52:23 +08:00
FROM artifact.onwalk.net/public/alpine-glibc:2.34 AS prod
2023-03-01 14:26:57 +08:00
2023-03-01 15:36:44 +08:00
ENV PATH $PATH:/usr/local/bin:/kaniko
ENV DOCKER_CONFIG /kaniko/.docker/
2023-03-01 14:56:13 +08:00
RUN apk --update add \
bash \
curl \
git \
jq \
npm
2023-03-01 14:45:00 +08:00
# add kaniko tools
2023-03-01 14:56:13 +08:00
COPY --from=kaniko /etc/nsswitch.conf /etc/nsswitch.conf
COPY --from=kaniko /kaniko/executor /kaniko/executor
2023-03-01 14:45:00 +08:00
2023-03-01 14:26:57 +08:00
# add jfrog cli
2023-03-09 11:04:12 +08:00
RUN curl -Lo /usr/bin/jf https://mirrors.onwalk.net/tools/linux-amd64/jf
RUN chmod +x /usr/bin/jf
2023-03-01 14:26:57 +08:00
CMD ["/bin/sh"]