-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ponder-0.7' into staging
- Loading branch information
Showing
41 changed files
with
1,041 additions
and
8,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,15 @@ | |
"type": "module", | ||
"scripts": { | ||
"deploy:prod": "sst deploy --stage production", | ||
"deploy:dev": "sst deploy --stage dev", | ||
"deploy:dev": "sst deploy --stage dev --print-logs", | ||
"format": "biome check --write .", | ||
"format:check": "biome check .", | ||
"lint": "biome lint .", | ||
"typecheck": "tsc" | ||
"typecheck": "tsc", | ||
"update:deps": "npm-check-updates -ui -ws -f \\!sst" | ||
}, | ||
"devDependencies": { | ||
"npm-check-updates": "^17.1.11", | ||
"@biomejs/biome": "1.9.4", | ||
"@pulumi/aws": "^6.59.1", | ||
"@pulumi/pulumi": "^3.139.0", | ||
|
@@ -22,8 +24,6 @@ | |
"engines": { | ||
"node": ">=18.14" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"sst": "3.3.22" | ||
} | ||
"packageManager": "[email protected]", | ||
"workspaces": ["packages/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
"engines": { | ||
"node": ">=18.14" | ||
}, | ||
"packageManager": "pnpm@9.1.3" | ||
"packageManager": "bun@1.1.36" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
# Base image is node-22 | ||
FROM node:22-slim AS base | ||
|
||
# Setup pnpm | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
RUN corepack install --global [email protected] | ||
|
||
# Create app directory | ||
# Base stage | ||
FROM --platform=$BUILDPLATFORM oven/bun:1 AS base | ||
WORKDIR /usr/src/app | ||
|
||
# install dependencies into temp directory | ||
# this will cache them and speed up future builds | ||
# Bun package installation | ||
FROM base AS install | ||
# install python and all the stuff required to build sqlite3 | ||
RUN apt-get update && apt-get install -y python3 build-essential | ||
|
||
# Install dependencies | ||
ENV NODE_ENV=production | ||
|
||
# Install prod dependencies | ||
RUN mkdir -p /temp/prod | ||
COPY package.json /temp/prod/ | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store cd /temp/prod && pnpm install --prod | ||
RUN cd /temp/prod && bun install --production | ||
|
||
FROM base AS release | ||
|
||
# Set env to production | ||
ENV NODE_ENV=production | ||
# Start a new stage for the final image | ||
FROM base AS release | ||
|
||
# copy production dependencies and source code into final image | ||
COPY . . | ||
# todo: Ideally ponder would expose a bundler command or something like that to have a lighter docker image, | ||
# thus permitting to use more efficient runtime than vite (like a bun binary bundle) | ||
# Copy the installed node_modules and the app | ||
COPY --from=install /temp/prod/node_modules node_modules | ||
COPY . . | ||
|
||
# run the app | ||
# Run the app | ||
ENV NODE_ENV=production | ||
EXPOSE 42069/tcp | ||
ENTRYPOINT [ "pnpm", "ponder", "start"] | ||
ENTRYPOINT ["bun", "ponder", "start"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.