mirror of
https://github.com/evroon/bracket.git
synced 2026-06-12 10:44:33 -04:00
Updates the requirements on [pydantic](https://github.com/pydantic/pydantic) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/releases">pydantic's releases</a>.</em></p> <blockquote> <h2>v2.11.1 2025-03-28</h2> <!-- raw HTML omitted --> <h2>What's Changed</h2> <h3>Fixes</h3> <ul> <li>Do not override <code>'definitions-ref'</code> schemas containing serialization schemas or metadata by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11644">pydantic/pydantic#11644</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic/compare/v2.11.0...v2.11.1">https://github.com/pydantic/pydantic/compare/v2.11.0...v2.11.1</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/blob/main/HISTORY.md">pydantic's changelog</a>.</em></p> <blockquote> <h2>v2.11.1 (2025-03-28)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.11.1">GitHub release</a></p> <h3>What's Changed</h3> <h4>Fixes</h4> <ul> <li>Do not override <code>'definitions-ref'</code> schemas containing serialization schemas or metadata by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11644">#11644</a></li> </ul> <h2>v2.11.0 (2025-03-27)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.11.0">GitHub release</a></p> <h3>What's Changed</h3> <p>Pydantic v2.11 is a version strongly focused on build time performance of Pydantic models (and core schema generation in general). See the <a href="https://pydantic.dev/articles/pydantic-v2-11-release">blog post</a> for more details.</p> <h4>Packaging</h4> <ul> <li>Bump <code>pydantic-core</code> to v2.33.0 by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11631">#11631</a></li> </ul> <h4>New Features</h4> <ul> <li>Add <code>encoded_string()</code> method to the URL types by <a href="https://github.com/YassinNouh21"><code>@YassinNouh21</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11580">#11580</a></li> <li>Add support for <code>defer_build</code> with <code>@validate_call</code> decorator by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11584">#11584</a></li> <li>Allow <code>@with_config</code> decorator to be used with keyword arguments by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11608">#11608</a></li> <li>Simplify customization of default value inclusion in JSON Schema generation by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11634">#11634</a></li> <li>Add <code>generate_arguments_schema()</code> function by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11572">#11572</a></li> </ul> <h4>Fixes</h4> <ul> <li>Allow generic typed dictionaries to be used for unpacked variadic keyword parameters by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11571">#11571</a></li> <li>Fix runtime error when computing model string representation involving cached properties and self-referenced models by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11579">#11579</a></li> <li>Preserve other steps when using the ellipsis in the pipeline API by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11626">#11626</a></li> <li>Fix deferred discriminator application logic by <a href="https://github.com/Viicos"><code>@Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/11591">#11591</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/cmenon12"><code>@cmenon12</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11562">#11562</a></li> <li><a href="https://github.com/Jeukoh"><code>@Jeukoh</code></a> made their first contribution in <a href="https://redirect.github.com/pydantic/pydantic/pull/11611">#11611</a></li> </ul> <h2>v2.11.0b2 (2025-03-17)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.11.0b2">GitHub release</a></p> <h3>What's Changed</h3> <h4>Packaging</h4> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="6c38dc93f4"><code>6c38dc9</code></a> Prepare release v2.11.1 (<a href="https://redirect.github.com/pydantic/pydantic/issues/11648">#11648</a>)</li> <li><a href="1dcddac2c5"><code>1dcddac</code></a> Do not override <code>'definitions-ref'</code> schemas containing serialization schemas ...</li> <li><a href="024fdae2b5"><code>024fdae</code></a> Fix small typos (<a href="https://redirect.github.com/pydantic/pydantic/issues/11643">#11643</a>)</li> <li><a href="58e61fa3c6"><code>58e61fa</code></a> Prepare release v2.11.0 (<a href="https://redirect.github.com/pydantic/pydantic/issues/11635">#11635</a>)</li> <li><a href="e2c2e811e3"><code>e2c2e81</code></a> Add <code>generate_arguments_schema()</code> experimental function (<a href="https://redirect.github.com/pydantic/pydantic/issues/11572">#11572</a>)</li> <li><a href="72bea3f22f"><code>72bea3f</code></a> Add <code>mkdocs-llmstxt</code> documentation plugin (<a href="https://redirect.github.com/pydantic/pydantic/issues/11632">#11632</a>)</li> <li><a href="fcba83291a"><code>fcba832</code></a> Simplify customization of default value inclusion in JSON Schema generation (...</li> <li><a href="6f11161524"><code>6f11161</code></a> Add support for extra keys validation for models (<a href="https://redirect.github.com/pydantic/pydantic/issues/11578">#11578</a>)</li> <li><a href="7917b11bd2"><code>7917b11</code></a> Disable third-party workflow issue report (<a href="https://redirect.github.com/pydantic/pydantic/issues/11629">#11629</a>)</li> <li><a href="f5226d2946"><code>f5226d2</code></a> Bump <code>pydantic-core</code> to v2.33.0 (<a href="https://redirect.github.com/pydantic/pydantic/issues/11631">#11631</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pydantic/pydantic/compare/v2.10.6...v2.11.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erik Vroon <erik.vroon@channable.com>
58 lines
1.5 KiB
Docker
58 lines
1.5 KiB
Docker
# Install dependencies only when needed
|
|
FROM node:22-alpine AS deps
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
# Increase timeout for slow QEMU arm64 builds
|
|
# https://github.com/nodejs/docker-node/issues/1335
|
|
RUN yarn --network-timeout 1000000
|
|
|
|
# Rebuild the source code only when needed
|
|
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
|
|
RUN NEXT_PUBLIC_API_BASE_URL=http://NEXT_PUBLIC_API_BASE_URL_PLACEHOLDER \
|
|
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=NEXT_PUBLIC_HCAPTCHA_SITE_KEY_PLACEHOLDER \
|
|
yarn build
|
|
|
|
# Production image, copy all the files and run next
|
|
FROM node:22-alpine AS runner
|
|
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
COPY --from=builder /app/public ./public
|
|
COPY --from=builder /app/.next ./.next
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./package.json
|
|
COPY --from=builder /app/docker-entrypoint.sh ./entrypoint.sh
|
|
COPY --from=builder /app/next.config.js ./next.config.js
|
|
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
|
|
|
|
RUN addgroup -g 1001 --system nodejs && \
|
|
adduser --system nextjs -u 1001 -G nodejs && \
|
|
chown -R nextjs:nodejs /app/.next && \
|
|
chmod +x /app/entrypoint.sh
|
|
|
|
RUN apk add bash
|
|
|
|
RUN yarn next telemetry disable
|
|
|
|
USER nextjs
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|
HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
|
|
CMD ["wget", "--spider", "http://0.0.0.0:3000", "||", "exit", "1"]
|
|
|
|
CMD ["yarn", "start"]
|