Files
blog/content/blogs/phantom-token/api/Dockerfile
Arlan Lloyd 30ca4de27d fix: copy syntax for multiple file copy
Signed-off-by: Arlan Lloyd <arlanlloyd@gmail.com>
2025-03-28 13:24:27 +00:00

21 lines
294 B
Docker

FROM oven/bun
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --production
COPY index.ts tsconfig.json ./
ENV NODE_ENV=production
RUN bun build \
--compile \
--minify-whitespace \
--minify-syntax \
--target bun \
--outfile server \
./index.ts
EXPOSE 3000
CMD ["./server"]