-
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
Showing
8 changed files
with
23 additions
and
22 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,4 +1,5 @@ | ||
.git | ||
.gitignore | ||
.turbo | ||
.rollup.cache | ||
.rollup.cache | ||
node_modules |
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,18 +1,15 @@ | ||
FROM node:21-alpine AS base | ||
FROM node:latest AS build | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
FROM base AS build | ||
COPY . . | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
WORKDIR /apps/cms | ||
RUN pnpm run build | ||
RUN pnpm run build --migrationsOnly | ||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app | ||
RUN pnpm install --force --frozen-lockfile | ||
RUN pnpm run build:cms | ||
|
||
FROM directus/directus | ||
ENV ADMIN_EMAIL="admin@example.com" | ||
ENV ADMIN_PASSWORD="d1r3ctu5" | ||
COPY --from=build ./apps/cms/snapshot.yaml ./snapshot.yaml | ||
COPY --from=build ./apps/cms/extensions ./extensions | ||
COPY --from=build ./usr/src/app/apps/cms/snapshot.yaml ./snapshot.yaml | ||
COPY --from=build ./usr/src/app/apps/cms/extensions ./extensions | ||
CMD node cli.js bootstrap && node cli.js database migrate:latest && node cli.js schema apply --yes ./snapshot.yaml && node cli.js 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const gray = (text: string) => `\x1b[90m${text}\x1b[0m` | ||
|
||
export const green = (text: string) => `\x1b[32m${text}\x1b[0m` | ||
|
||
export const red = (text: string) => `\x1b[31m${text}\x1b[0m` |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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