rollback image from scratch
This commit is contained in:
parent
8a51622ee0
commit
ebd2948b07
2 changed files with 2 additions and 9 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
ARG BASE_IMAGE
|
||||
|
||||
FROM ${BASE_IMAGE} as builder
|
||||
FROM ${BASE_IMAGE}
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG VERSION
|
||||
|
@ -83,9 +83,5 @@ USER www-data
|
|||
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder / /
|
||||
|
||||
USER www-data
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD ["/nginx-ingress-controller"]
|
||||
|
|
|
@ -23,7 +23,7 @@ RUN apk update \
|
|||
&& apk upgrade \
|
||||
&& /chroot.sh
|
||||
|
||||
FROM alpine:3.19.0 as builder
|
||||
FROM alpine:3.19.0
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG VERSION
|
||||
|
@ -116,12 +116,9 @@ RUN mkdir -p /chroot/modules_mount \
|
|||
&& mkdir -p modules_mount \
|
||||
&& ln -s /modules_mount /chroot/modules_mount
|
||||
|
||||
FROM scratch
|
||||
|
||||
USER www-data
|
||||
|
||||
EXPOSE 80 443
|
||||
COPY --from=builder / /
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
|
||||
CMD ["/nginx-ingress-controller"]
|
||||
|
|
Loading…
Reference in a new issue