generated from filename24/monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0a8a54
commit 9d15ac9
Showing
12 changed files
with
112 additions
and
70 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
diff --git a/package.json b/package.json | ||
index c4767972038320b664c412357caa222f3c9f8a9d..c0c3f11b655dd9fa8f1271d98d9ba21d190fbf12 100644 | ||
index c4767972038320b664c412357caa222f3c9f8a9d..ae9bbf844bee3af6a36df51bb13df2efce39947c 100644 | ||
--- a/package.json | ||
+++ b/package.json | ||
@@ -2,6 +2,7 @@ | ||
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "dokdo", | ||
"version": "1.0.1", | ||
"description": "Dokdo. Easy Discord bot debuging tool.", | ||
+ "type": "module", | ||
"description": "Dokdo. Easy Discord bot debuging tool.", | ||
"scripts": { | ||
"build": "tsup", | ||
"dev": "yarn test:bot", |
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,29 +1,40 @@ | ||
FROM node:18 AS Builder | ||
FROM node:18-alpine AS builder | ||
|
||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
RUN apk update | ||
|
||
WORKDIR /app | ||
RUN yarn global add turbo | ||
COPY . . | ||
RUN turbo prune --scope=bot --docker | ||
|
||
COPY package.json ./ | ||
COPY turbo.json ./ | ||
COPY yarn.lock ./ | ||
COPY .yarnrc.yml ./ | ||
COPY tsup.config.ts ./ | ||
COPY .yarn/ ./.yarn/ | ||
FROM node:18-alpine AS installer | ||
RUN apk add --no-cache libc6-compat | ||
RUN apk update | ||
WORKDIR /app | ||
|
||
COPY apps/bot/package.json ./apps/bot/package.json | ||
COPY .gitignore .gitignore | ||
COPY --from=builder /app/out/json/ . | ||
COPY --from=builder /app/out/yarn.lock ./yarn.lock | ||
COPY --from=builder /app/.yarnrc.yml ./.yarnrc.yml | ||
COPY --from=builder /app/.yarn/ ./.yarn/ | ||
|
||
COPY packages/ ./packages/ | ||
RUN yarn install | ||
|
||
RUN yarn install --inline-builds | ||
COPY --from=builder /app/out/full/ . | ||
COPY turbo.json turbo.json | ||
COPY tsconfig.json tsconfig.json | ||
COPY tsup.config.ts tsup.config.ts | ||
|
||
COPY apps/bot ./apps/bot/ | ||
RUN yarn turbo run build --filter=bot... | ||
|
||
RUN yarn build --filter=bot | ||
FROM node:18-alpine AS runner | ||
|
||
FROM node:18-alpine AS Server | ||
RUN apk add --no-cache bash git openssh python3 build-base libc6-compat | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=Builder /app/apps/bot/dist/ ./dist | ||
COPY --from=Builder /app/apps/bot/package.json . | ||
COPY --from=installer /app . | ||
|
||
CMD ["node", "./dist/index.js"] | ||
CMD yarn workspace bot start:node |
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
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.