Compare commits

...

2 Commits

3 changed files with 26 additions and 9 deletions

View File

@ -1,3 +1,15 @@
node_modules node_modules
build Dockerfile*
bun.lockb docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*

View File

@ -1,13 +1,19 @@
FROM oven/bun:latest FROM oven/bun AS build
WORKDIR /app WORKDIR /app
COPY . . COPY . .
EXPOSE 3000 ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
RUN bun install && bun run build
RUN bun install FROM build AS release
RUN bun run build
ENTRYPOINT ["bun", "run", "start"] WORKDIR /app
COPY --from=build /app/build ./.next
RUN bun add next
EXPOSE 3000
ENTRYPOINT ["bun", "run", "env", "--", "next", "start", "-p", "3000"]

View File

@ -2,7 +2,6 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
distDir: "build", distDir: "build",
output: "standalone",
rewrites: async () => { rewrites: async () => {
return [ return [
{ {