Skip to content

Commit

Permalink
refacotr: try different flavor of distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Sep 26, 2023
1 parent 8a16226 commit a47cec8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ENV PATH="${PATH}:/root/.bun/bin"
RUN apt update
RUN apt install curl unzip patch -y

RUN mkdir -p /opt && \
cp -a --parents /usr/lib/*/libstdc++.* /opt
# RUN mkdir -p /opt && \
# cp -a --parents /usr/lib/*/libstdc++.* /opt

RUN curl https://bun.sh/install | bash
RUN bun -v
Expand Down Expand Up @@ -56,7 +56,7 @@ RUN bun ./tools/patchSW.ts

# ? -------------------------

FROM gcr.io/distroless/base
FROM gcr.io/distroless/cc
WORKDIR /app

ENV HOST 0.0.0.0
Expand All @@ -67,7 +67,7 @@ EXPOSE 8080

COPY package.json ./
COPY --from=base /root/.bun/bin/bun bun
COPY --from=base /opt /
# COPY --from=base /opt /
COPY --from=deps-prod /app/node_modules ./build/node_modules
COPY --from=builder /app/build ./build
COPY --from=builder /app/.svelte-kit ./.svelte-kit
Expand Down

0 comments on commit a47cec8

Please sign in to comment.