Files
ts3gotify/Dockerfile
Timo Behrendt 3eca1f5516
All checks were successful
CD / Test (push) Successful in 1m1s
CD / Build and push (amd64) (push) Successful in 1m1s
CD / Build and push (arm64) (push) Successful in 1m43s
CD / Create manifest (push) Successful in 23s
ci: fix manifest when building multi stage (#9)
Reviewed-on: #9
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2025-01-08 13:53:57 +01:00

23 lines
547 B
Docker

FROM oven/bun:1.1.42 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 [ "node", "/app/app.js"]