forked from klakegg/docker-hugo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arm64 support for alpine ext images (#118)
Fix issue #117
- Loading branch information
Showing
12 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,4 +112,4 @@ tests: | |
pandoc: | ||
entrypoint: pandoc | ||
command: --version | ||
expected: pandoc-default | ||
expected: pandoc-default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,45 @@ | ||
FROM base--image--alpine AS fetcher-glibc | ||
# FROM base--image--alpine AS fetcher-glibc | ||
|
||
ARG TARGETPLATFORM | ||
# ARG TARGETPLATFORM | ||
|
||
ADD _script/nodejs-glibc.sh nodejs.sh | ||
RUN sh nodejs.sh | ||
# ADD _script/nodejs-glibc.sh nodejs.sh | ||
# RUN sh nodejs.sh | ||
|
||
|
||
|
||
FROM scratch AS glibc | ||
# FROM scratch AS glibc | ||
|
||
COPY --from=fetcher-glibc /files / | ||
# COPY --from=fetcher-glibc /files / | ||
|
||
|
||
|
||
|
||
|
||
FROM base--image--alpine AS fetcher-musl | ||
# FROM base--image--alpine AS fetcher-musl | ||
|
||
ARG TARGETPLATFORM | ||
# ARG TARGETPLATFORM | ||
|
||
ADD _script/nodejs-musl.sh nodejs.sh | ||
RUN sh nodejs.sh | ||
# ADD _script/nodejs-musl.sh nodejs.sh | ||
# RUN sh nodejs.sh | ||
|
||
|
||
|
||
# # FROM scratch AS musl | ||
|
||
# # COPY --from=fetcher-musl /files / | ||
|
||
|
||
|
||
# Use the official Node.js Alpine image as the first stage | ||
FROM node:current-alpine AS node-base | ||
|
||
# Initialize the second stage with your custom image | ||
FROM scratch AS musl | ||
|
||
COPY --from=fetcher-musl /files / | ||
# Copy Node.js, npm, and yarn related files and directories from the first stage to the second stage | ||
COPY --from=node-base /usr/lib /usr/lib | ||
COPY --from=node-base /usr/local/share /usr/local/share | ||
COPY --from=node-base /usr/local/lib /usr/local/lib | ||
COPY --from=node-base /usr/local/include /usr/local/include | ||
COPY --from=node-base /usr/local/bin /usr/local/bin | ||
COPY --from=node-base /opt /opt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters