Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN --mount=type=bind,target=. \
shellcheck --version && find . -name '*.sh' -exec shellcheck {} +

# =========================================================
FROM hadolint/hadolint:v2.14.0-alpine AS hadolint
FROM hadolint/hadolint:v2.15.1-alpine AS hadolint
WORKDIR /src
RUN --mount=type=bind,target=. \
hadolint --version && find . -name Dockerfile -exec hadolint {} +
Expand Down Expand Up @@ -53,7 +53,7 @@ WORKDIR /out
ENTRYPOINT ["build-image"]

# =========================================================
FROM alpine-base AS bootable-alpine-rootfs
FROM alpine-base AS bootable-alpine
SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]

# install the alpine-base package (for the user space)
Expand Down Expand Up @@ -91,9 +91,6 @@ rc_add boot "$BOOT_SERVICES"; \
rc_add default "$DEFAULT_SERVICES"; \
rc_add shutdown "$SHUTDOWN_SERVICES"

# =========================================================
FROM scratch AS bootable-alpine
COPY --from=bootable-alpine-rootfs / /
ENTRYPOINT ["/bin/sh"]

# =========================================================
Expand Down