Files
ts3gotify/Dockerfile
Timo Behrendt 703da8c99b
All checks were successful
CD / Test (push) Successful in 4m45s
CD / Create tag (push) Successful in 12s
CD / Build and push (amd64) (push) Successful in 33s
CD / Build and push (arm64) (push) Successful in 8m4s
CD / Create manifest (push) Successful in 27s
revert: update bun version to v1.3.8 (#91)
This reverts commit 746ede4bd8.

Reverting #83 because of build errors.

Reviewed-on: #91
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-02-15 10:57:48 +01:00

23 lines
618 B
Docker

FROM oven/bun:1.3.6@sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a AS base
WORKDIR /app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
FROM base AS build
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
RUN bun run build
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY --from=build /app/dist .
CMD [ "bun", "/app/main.js"]