Replies: 2 comments
|
Same. fnox doesn't seem to have a musl build.
|
0 replies
|
You can build on debian and switch to alpine as the final image. Live and learn. # syntax=docker.io/docker/dockerfile-upstream:1.22.0
# Got glibc 👍
FROM node:24.14.0-bookworm-slim AS base
ENV MISE_INSTALL_PATH=/usr/local/bin/mise \
MISE_VERSION=2026.4.25 \
MISE_DATA_DIR=/usr/local/share/mise \
MISE_TRUSTED_CONFIG_PATHS=/usr/src/app \
PATH=/usr/local/share/mise/shims:/usr/local/share/mise/bin:$PATH \
MISE_VERBOSE=1
RUN apt-get update \
&& apt-get install --yes --no-install-recommends git openssh-client xz-utils ca-certificates wget \
&& rm -rf /var/lib/apt/lists/* \
&& wget -qO - https://mise.run | sh
# Build in the glibc image, everything should work
FROM base AS build
WORKDIR /usr/src/app
COPY pnpm-lock.yaml pnpm-workspace.yaml mise.toml ./
RUN mise trust --all && mise install
RUN pnpm fetch
COPY . ./
RUN pnpm -F=!lgh install --offline --frozen-lockfile
# FNOX_AGE_KEY comes from BuildKit secret mount so it never lands in an image layer
RUN --mount=type=secret,id=FNOX_AGE_KEY,required=true \
export FNOX_AGE_KEY="$(cat /run/secrets/FNOX_AGE_KEY)" \
&& mise run //psl:build
RUN pnpm -F=psl deploy --prod /app
# Final layer is Alpine, same small image as before 👍
FROM node:24.14.0-alpine3.22 AS psl
COPY --from=build /app/build /app/build
COPY --from=build /app/node_modules /app/node_modules
WORKDIR /app
CMD ["node", "build/server/index.js"] |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I get an error when trying to run this on alpine
All reactions