-
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(worker): copy ffmpeg into worker
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 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
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,17 +1,19 @@ | ||
FROM oven/bun | ||
FROM jrottenberg/ffmpeg:6.0-scratch as ffmpeg | ||
FROM oven/bun:latest | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ENV LD_LIBRARY_PATH=/usr/local/lib | ||
|
||
COPY --from=node:22 /usr/local/bin/node /usr/local/bin/node | ||
COPY --from=ffmpeg /usr/local /usr/local | ||
COPY --from=ffmpeg /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
RUN bun run build --filter=@atcast/worker | ||
|
||
RUN rm -rf ./node_modules | ||
|
||
RUN bun install --production | ||
|
||
WORKDIR /usr/src/app/apps/worker | ||
|
||
CMD [ "bun", "start" ] |