29 lines
570 B
Docker
29 lines
570 B
Docker
## Important! Build context is the ROOT of the project.
|
|
## this keeps the door open for future possibility of shared code between pnpm workspace packages
|
|
|
|
|
|
FROM oven/bun:1 AS base
|
|
RUN apt-get update && apt-get install -y \
|
|
curl
|
|
|
|
RUN mkdir -p /tmp/dev
|
|
WORKDIR /tmp/dev
|
|
COPY ./contrib/superstreamer .
|
|
RUN ls -la
|
|
|
|
# Install ffmpeg, ffprobe
|
|
RUN bun run install-bin
|
|
|
|
|
|
FROM oven/bun:1 AS install
|
|
RUN bun install
|
|
RUN bun run test
|
|
RUN bun run build
|
|
USER bun
|
|
EXPOSE 7991/tcp
|
|
WORKDIR /tmp/dev/packages/artisan
|
|
RUN ls -la ./dist
|
|
ENTRYPOINT [ "bun", "run", "./dist/index.js" ]
|
|
|
|
|