-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lifecycle hooks in Dockerfile (#11)
Ignore lifecycle hooks when installing dependencies in the Dockerfile. This prevents husky from running hooks.
- Loading branch information
1 parent
105214b
commit 79c78b9
Showing
3 changed files
with
20 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
FROM oven/bun:latest AS build | ||
|
||
WORKDIR /app | ||
COPY package.json bun.lockb ./ | ||
RUN bun install --frozen-lockfile | ||
|
||
COPY . . | ||
RUN bun run build | ||
|
||
|
||
FROM oven/bun:latest | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/build /app/package.json /app/bun.lockb ./ | ||
RUN bun install --production | ||
# Required by svelte-adapter-bun (for whatever reason) | ||
RUN bun install devalue cookie set-cookie-parser | ||
|
||
ENTRYPOINT ["bun", "index.js"] | ||
FROM oven/bun:latest AS build | ||
|
||
WORKDIR /app | ||
COPY package.json bun.lockb ./ | ||
RUN bun install --frozen-lockfile --ignore-scripts | ||
|
||
COPY . . | ||
RUN bun run build | ||
|
||
|
||
FROM oven/bun:latest | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/build /app/package.json /app/bun.lockb ./ | ||
RUN bun install --production | ||
# Required by svelte-adapter-bun (for whatever reason) | ||
RUN bun install devalue cookie set-cookie-parser | ||
|
||
ENTRYPOINT ["bun", "index.js"] |
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