test-smollm / Dockerfile
cfahlgren1's picture
cfahlgren1 HF staff
finally figured out the dockerfile :)
5183689
raw
history blame contribute delete
309 Bytes
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"]