diff --git a/Dockerfile b/Dockerfile index 8954eab..fa9c321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ FROM builder-base AS deps # make the installation of dependencies a separate step to leverage Docker caching RUN mkdir -p /tmp/dev # copy package files to temp directory for dependency installation -COPY package.json bun.lock* ./ +COPY package.json bun.lock* /tmp/dev/ # install dependencies with bun RUN cd /tmp/dev && \ bun install --frozen-lockfile || bun install @@ -35,8 +35,6 @@ FROM builder-base AS builder ENV NODE_ENV=production \ NEXT_TELEMETRY_DISABLED=1 \ NEXT_PUBLIC_BUILD_OUTPUT="standalone" -# set the working directory to the app workspace for building -WORKDIR /usr/src/app # copy dependencies from the deps stage to the builder stage COPY --from=deps /tmp/dev/node_modules ./ # copy source files to the builder stage @@ -72,6 +70,8 @@ COPY --from=builder --chown=ausr:appgroup /usr/src/app/build/static ./build/stat # Copy production node_modules COPY --from=install --chown=ausr:appgroup /tmp/prod/node_modules ./node_modules +# copy any .env files if needed (optional) +COPY --chown=ausr:appgroup .env* ./ USER ausr EXPOSE 3000/tcp diff --git a/package.json b/package.json index 9d23174..0f4e04f 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,14 @@ "type": "git", "url": "git+https://github.com/scattered-systems/scsys-io.git" }, - "version": "0.0.8", + "version": "0.0.9", "scripts": { - "build": "next build", + "build": "bun run --bun next build", "deploy": "bun run wrangler:deploy", - "dev": "next dev", + "dev": "bun run --bun next dev", "fmt": "bun run prettier:write", "lint": "eslint . --ext ts", - "start": "next start", + "start": "bun run --bun next start", "cf:build": "opennextjs-cloudflare build", "cf:preview": "bun run cf:build && opennextjs-cloudflare preview", "cf:deploy": "bun run cf:build && opennextjs-cloudflare deploy", @@ -89,7 +89,7 @@ "react": "^19.2.4", "react-dom": "^19.2.4", "react-hook-form": "^7.71.2", - "react-resizable-panels": "^4", + "react-resizable-panels": "^4.7.1", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", "sonner": "^2.0.7",