How to make a minimized Docker image? #15922
-
I try multiple steps, but got error FROM oven/bun:alpine as builder
WORKDIR /workspace
COPY package.json ./
RUN bun install
COPY ./ ./
RUN bun run build
FROM alpine # if base oven/bun:alpine also, the image is 203MB too large
WORKDIR /workspace
COPY --from=builder /workspace/dist/app /workspace/app
ENTRYPOINT ["./app"]
I try make glibc alpine image to as base image, but got the same as error |
Beta Was this translation helpful? Give feedback.
Answered by
Jarred-Sumner
Dec 21, 2024
Replies: 1 comment 6 replies
-
@seepine you'll need to have libstdc++ and libgcc installed (node also requires this) |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
seepine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@seepine you'll need to have libstdc++ and libgcc installed (node also requires this)