Files

15 lines
360 B
Docker
Raw Permalink Normal View History

FROM oven/bun:1.4.2 AS build
WORKDIR /app
COPY package.json bun.lock tsconfig.json ./
RUN bun install --frozen-lockfile
COPY scripts ./scripts
COPY src ./src
RUN bun run build
FROM oven/bun:1.4.2
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/src/web-server.ts ./src/web-server.ts
USER bun
EXPOSE 3000
CMD ["bun", "src/web-server.ts"]