Skip to content

Commit

Permalink
test(planner/nodejs): Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Sep 10, 2023
1 parent 53bd754 commit d1b04ba
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions internal/nodejs/__snapshots__/template_test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,31 @@ RUN echo "\
EXPOSE 8080


---

[TestTemplate_BuildCmd_Bun - 1]
# Install bun if we need it
FROM oven/bun:1.0 as bun-runtime
FROM node:18 as build

ENV PORT=8080
WORKDIR /src
# Copy the bun binary from the bun-runtime stage directly.
# A bit hacky but it works.
COPY --from=bun-runtime /usr/local/bin/bun /usr/local/bin
COPY --from=bun-runtime /usr/local/bin/bunx /usr/local/bin

RUN corepack enable && corepack prepare --all
COPY . .

RUN bun install

# Build if we can build it



EXPOSE 8080
CMD bun start main.ts


---

0 comments on commit d1b04ba

Please sign in to comment.