From 3c0028f308964984caa2890b43fb6e00bf12d47d Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Thu, 12 Dec 2024 17:06:30 -0500 Subject: [PATCH] web: working Container file --- web/.dockerignore | 3 +++ web/Containerfile | 8 ++------ web/next.config.ts | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 web/.dockerignore diff --git a/web/.dockerignore b/web/.dockerignore new file mode 100644 index 0000000..5f255af --- /dev/null +++ b/web/.dockerignore @@ -0,0 +1,3 @@ +node_modules +build +bun.lockb \ No newline at end of file diff --git a/web/Containerfile b/web/Containerfile index 14611d4..4bc5f08 100644 --- a/web/Containerfile +++ b/web/Containerfile @@ -2,13 +2,9 @@ FROM oven/bun:latest WORKDIR /app -COPY eslint.config.mjs ./ -COPY next.config.ts ./ -COPY tsconfig.json ./ -COPY package.json ./ -COPY src ./ +COPY . . -EXPOSE 3000/tcp +EXPOSE 3000 ENV NEXT_TELEMETRY_DISABLED=1 diff --git a/web/next.config.ts b/web/next.config.ts index a6ad2a0..8cb3c98 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -2,6 +2,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { distDir: "build", + output: "standalone", rewrites: async () => { return [ {