mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2024-12-22 16:16:27 +00:00
12 lines
264 B
Docker
12 lines
264 B
Docker
FROM oven/bun:1 as base
|
|
WORKDIR /app
|
|
|
|
FROM base as builder
|
|
COPY . .
|
|
RUN bun install --production --frozen-lockfile
|
|
RUN bun build --target bun --minify src/index.ts --outfile app.js
|
|
|
|
FROM base
|
|
COPY --from=builder /app/app.js .
|
|
ENTRYPOINT [ "bun", "run", "app.js" ]
|