feat: update Dockerfile and workflow for environment variable support

- Modified the Dockerfile to include ARG and ENV for PUBLIC_CONVEX_URL and PUBLIC_CONVEX_SITE_URL, enhancing configuration flexibility.
- Updated the deploy workflow to pass these environment variables during the build process.
- Adjusted package.json to use bun for script commands and added svelte-adapter-bun for improved Svelte integration.
This commit is contained in:
2025-11-26 15:42:22 -03:00
parent 86ae2a1084
commit be959eb230
7 changed files with 440 additions and 405 deletions

View File

@@ -6,13 +6,9 @@ WORKDIR /app
# ---
FROM base AS prepare
# Replace <your-major-version> with the major version installed in your repository. For example:
# RUN yarn global add turbo@^2
RUN bun add -g turbo@^2
COPY . .
# Add lockfile and package.json's of isolated subworkspace
# Generate a partial monorepo with a pruned lockfile for a target workspace.
# Assuming "web" is the name entered in the project's package.json: { name: "web" }
RUN turbo prune web --docker
@@ -28,6 +24,12 @@ COPY --from=prepare /app/out/full/ .
# Copy the rest of the source code
COPY --from=prepare /app/out/full/ .
ARG PUBLIC_CONVEX_URL
ENV PUBLIC_CONVEX_URL=$PUBLIC_CONVEX_URL
ARG PUBLIC_CONVEX_SITE_URL
ENV PUBLIC_CONVEX_SITE_URL=$PUBLIC_CONVEX_SITE_URL
RUN bunx turbo build
# Production stage