🐳 Adds dockerfile
All checks were successful
Gitea Build Action / build-go (push) Successful in 23s
Gitea Build Action / build-nuxt (push) Successful in 10m5s

This commit is contained in:
Daniel Svitan
2025-06-06 22:12:54 +02:00
parent 18a6bef20a
commit 88c31a5133
7 changed files with 118 additions and 28 deletions

20
web/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM oven/bun:1 AS build
WORKDIR /app
COPY package.json bun.lock .
RUN bun install --frozen-lockfile --production
COPY . .
RUN bun run build
FROM oven/bun:1
WORKDIR /app
COPY --from=build /app/.output .
ENV PORT 3000
ENV HOST 0.0.0.0
EXPOSE 3000
CMD ["bun", "/app/server/index.mjs"]