-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sst config with lambda/neon and standalone servers
- Loading branch information
Showing
11 changed files
with
656 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
# sst | ||
.sst |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM node:lts-alpine AS base | ||
|
||
# Stage 1: Install dependencies | ||
FROM base AS deps | ||
WORKDIR /app | ||
|
||
RUN npm install -g pnpm | ||
|
||
COPY pnpm-*.yaml ./ | ||
COPY package.json ./ | ||
COPY tsconfig.build.json ./ | ||
COPY packages/typescript-client packages/typescript-client/ | ||
COPY packages/react-hooks packages/react-hooks/ | ||
COPY examples/yjs-provider/ examples/yjs-provider/ | ||
|
||
# Install dependencies | ||
RUN pnpm install --frozen-lockfile | ||
RUN pnpm run -r build | ||
|
||
|
||
# Need to make production image more clean | ||
FROM node:lts-alpine AS prod | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV=production | ||
COPY --from=deps /app/ ./ | ||
|
||
WORKDIR /app/examples/yjs-provider/ | ||
|
||
EXPOSE 3000 | ||
CMD ["npm", "run", "start"] |
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
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.