mirror of
https://github.com/azaion/ui.git
synced 2026-04-22 22:26:36 +00:00
Update Dockerfile to support multi-platform builds and enhance project rules for source code organization.
This commit is contained in:
@@ -21,3 +21,4 @@ alwaysApply: true
|
|||||||
|
|
||||||
- Make sure we don't commit binaries, create and keep .gitignore up to date and delete binaries after you are done with the task
|
- Make sure we don't commit binaries, create and keep .gitignore up to date and delete binaries after you are done with the task
|
||||||
- Never force-push to main or dev branches
|
- Never force-push to main or dev branches
|
||||||
|
- Place all source code under the `src/` directory; keep project-level config, tests, and tooling at the repo root
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ globs: ["**/*.py", "**/pyproject.toml", "**/requirements*.txt"]
|
|||||||
- Use type hints on all function signatures; validate with `mypy` or `pyright`
|
- Use type hints on all function signatures; validate with `mypy` or `pyright`
|
||||||
- Use `pydantic` for data validation and serialization
|
- Use `pydantic` for data validation and serialization
|
||||||
- Import order: stdlib -> third-party -> local; use absolute imports
|
- Import order: stdlib -> third-party -> local; use absolute imports
|
||||||
- Use `src/` layout to separate app code from project files
|
|
||||||
- Use context managers (`with`) for resource management
|
- Use context managers (`with`) for resource management
|
||||||
- Catch specific exceptions, never bare `except:`; use custom exception classes
|
- Catch specific exceptions, never bare `except:`; use custom exception classes
|
||||||
- Use `async`/`await` with `asyncio` for I/O-bound concurrency
|
- Use `async`/`await` with `asyncio` for I/O-bound concurrency
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM oven/bun:1-alpine AS build
|
FROM --platform=$BUILDPLATFORM oven/bun:1-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lock* ./
|
COPY package.json bun.lock* ./
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
|
|||||||
Reference in New Issue
Block a user