dockerfile backend wip
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

This commit is contained in:
2025-09-05 18:42:58 +02:00
parent 2d90bcdf79
commit b338468043
3 changed files with 44 additions and 18 deletions

23
backend/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM oven/bun:latest AS build
WORKDIR /app
COPY package.json ./
COPY bun.lock ./
RUN bun install
COPY src ./src
RUN ls && bun run build
FROM oven/bun:latest AS run
WORKDIR /app
COPY --from=build /app/dist/ .
EXPOSE 3000
CMD ["bun", "run", "main.js"]