-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from HugoRCD/fix/55
- Loading branch information
Showing
11 changed files
with
12,555 additions
and
36 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,19 @@ | ||
# Versioning | ||
.git | ||
.gitignore | ||
.github | ||
|
||
# Dependencies | ||
**/node_modules | ||
**/dist | ||
**/.next | ||
**/.nuxt | ||
**/.output | ||
|
||
# Dev files | ||
.env* | ||
.editorconfig | ||
|
||
# CI/CD | ||
.gitlab-ci.yml | ||
.circleci |
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,3 @@ | ||
shamefully-hoist=true | ||
auto-install-peers=true | ||
ignore-workspace-root-check=true |
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,43 +1,32 @@ | ||
# Stage 1: Build Stage | ||
FROM oven/bun:latest AS build | ||
FROM node:20-alpine AS build | ||
|
||
RUN apk add --no-cache python3 make g++ \ | ||
&& corepack enable \ | ||
&& corepack prepare pnpm@latest --activate | ||
|
||
ARG TURBO_TEAM | ||
ARG TURBO_TOKEN | ||
Check warning on line 9 in Dockerfile GitHub Actions / build-and-pushSensitive data should not be used in the ARG or ENV commands
|
||
ARG NUXT_PRIVATE_GITHUB_TOKEN | ||
ARG NUXT_PUBLIC_STUDIO_TOKENS | ||
ARG NUXT_PUBLIC_SITE_URL | ||
ARG NUXT_PUBLIC_MEETING_LINK | ||
ARG NUXT_PRIVATE_RESEND_API_KEY | ||
ARG NUXT_PRIVATE_NOTES_PASSWORD | ||
|
||
ENV TURBO_TEAM=$TURBO_TEAM | ||
ENV TURBO_TOKEN=$TURBO_TOKEN | ||
Check warning on line 12 in Dockerfile GitHub Actions / build-and-pushSensitive data should not be used in the ARG or ENV commands
|
||
ENV NUXT_PRIVATE_GITHUB_TOKEN=$NUXT_PRIVATE_GITHUB_TOKEN | ||
ENV NUXT_PUBLIC_STUDIO_TOKENS=$NUXT_PUBLIC_STUDIO_TOKENS | ||
ENV NUXT_PUBLIC_SITE_URL=$NUXT_PUBLIC_SITE_URL | ||
ENV NUXT_PUBLIC_MEETING_LINK=$NUXT_PUBLIC_MEETING_LINK | ||
ENV NUXT_PRIVATE_RESEND_API_KEY=$NUXT_PRIVATE_RESEND_API_KEY | ||
ENV NUXT_PRIVATE_NOTES_PASSWORD=$NUXT_PRIVATE_NOTES_PASSWORD | ||
ENV NODE_ENV=production | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
COPY bun.lockb ./ | ||
|
||
COPY . . | ||
|
||
RUN bun install | ||
|
||
RUN bun run build | ||
RUN pnpm install --frozen-lockfile --prod | ||
RUN pnpm run build | ||
|
||
# Stage 2: Final Stage | ||
FROM oven/bun:latest | ||
FROM node:20-alpine AS final | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /app/.output .output | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["bun", "run", ".output/server/index.mjs"] | ||
CMD ["node", ".output/server/index.mjs"] |
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.