🐳 Adds Dockerfile

This commit is contained in:
Daniel Svitan
2025-02-07 11:14:10 +01:00
parent 5cd6047f06
commit f0beda5881
6 changed files with 470 additions and 11 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM oven/bun:latest as build
WORKDIR /app
COPY bun.lock* package.json ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM oven/bun:latest as runner
WORKDIR /app
COPY --from=build /app/dist ./
EXPOSE 3000
CMD ["bun", "x", "serve", "--single"]