Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down