Spaces:
Running
Running
FROM oven/bun:1 AS build | |
WORKDIR /app | |
COPY . . | |
RUN bun install | |
RUN bun run build | |
FROM oven/bun:1-slim AS run | |
WORKDIR /app | |
COPY --from=build /app/package.json . | |
COPY --from=build /app/bun.lockb . | |
COPY --from=build /app/build ./build | |
RUN bun install | |
USER bun | |
EXPOSE 3000 | |
CMD ["bun", "./build/index.js"] |