From d3fdae0103dfc4b7716b37535d08d7d7533bba0e Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Tue, 3 Dec 2024 17:30:10 -0700 Subject: [PATCH] one more fix --- extension.js | 6 ++---- util/docker/base.dockerfile | 2 ++ util/docker/next.dockerfile | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/extension.js b/extension.js index 24182ae..519c919 100644 --- a/extension.js +++ b/extension.js @@ -77,8 +77,8 @@ function resolveConfig(options) { buildOnly: options.buildOnly ?? false, dev: options.dev ?? false, installCommand: options.installCommand ?? 'npm install', - port: options.port ?? options.server.config.http.port, - securePort: options.securePort ?? options.server.config.http.securePort, + port: options.port, + securePort: options.securePort, prebuilt: options.prebuilt ?? false, subPath: options.subPath ?? '', cache: options.cache ?? false, @@ -304,8 +304,6 @@ export function start(options = {}) { }); } - logger.info(`Next.js App available on localhost:${config.port}`); - return true; }, }; diff --git a/util/docker/base.dockerfile b/util/docker/base.dockerfile index 3a3e159..c61c1d8 100644 --- a/util/docker/base.dockerfile +++ b/util/docker/base.dockerfile @@ -43,3 +43,5 @@ RUN npm install # Create link to the @harperdb/nextjs module RUN npm link + +WORKDIR / \ No newline at end of file diff --git a/util/docker/next.dockerfile b/util/docker/next.dockerfile index 00b192b..55d5628 100644 --- a/util/docker/next.dockerfile +++ b/util/docker/next.dockerfile @@ -14,6 +14,8 @@ COPY fixtures/next-${NEXT_MAJOR} /hdb/components/next-${NEXT_MAJOR} WORKDIR /hdb/components/next-${NEXT_MAJOR} RUN npm install +WORKDIR / + EXPOSE 9925 9926 CMD ["harperdb", "run"] \ No newline at end of file