-
Notifications
You must be signed in to change notification settings - Fork 2k
Feat/localization tests docker #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0bc7a91
ce188fe
c62586b
b25df1e
b81d709
7caee6c
88d5bc0
aa2f7ad
e1145e8
d7753e4
9e91bb9
d3c71b8
154856c
f8dcf3e
0c4bf20
47a0a65
300aef2
93146c7
03e4b5e
b2b4736
3fd5802
2e70253
932a554
c0402ef
57b9735
35f2652
86bce14
2b4b808
5acdc99
cab3fef
95b4a5e
9a2919d
20774a8
e6e703f
9efe82c
8f5468e
ab81f51
5b17532
08e82ee
443fb14
6ab6a0e
0b82e19
bcde123
3d25a3f
9bfa7db
8a49151
c0b1d3d
ba4da23
1dc2dec
210eb8e
b2eabd4
d31845a
bf6aa14
97307ce
0aaf868
eb8a1f6
c7477bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,63 +1,35 @@ | ||
| notebooks/ | ||
| data/ | ||
| .uploads/ | ||
| .venv/ | ||
| .env | ||
| sqlite-db/ | ||
| temp/ | ||
| google-credentials.json | ||
| docker-compose* | ||
| .docker_data/ | ||
| docs/ | ||
| surreal_data/ | ||
| surreal-data/ | ||
| notebook_data/ | ||
| temp/ | ||
| *.env | ||
| .git/ | ||
| .github/ | ||
| # Git | ||
| .git | ||
| .gitignore | ||
|
|
||
| # Frontend build artifacts and dependencies | ||
| frontend/node_modules/ | ||
| frontend/.next/ | ||
| frontend/.env.local | ||
| # Python | ||
| __pycache__ | ||
| *.pyc | ||
| *.pyo | ||
| *.pyd | ||
| .venv | ||
| venv | ||
| ENV | ||
| env | ||
| .pytest_cache | ||
| .mypy_cache | ||
| .ruff_cache | ||
|
|
||
| # Cache directories (recursive patterns) | ||
| **/__pycache__/ | ||
| **/.mypy_cache/ | ||
| **/.ruff_cache/ | ||
| **/.pytest_cache/ | ||
| **/*.pyc | ||
| **/*.pyo | ||
| **/*.pyd | ||
| .coverage | ||
| .coverage.* | ||
| htmlcov/ | ||
| .tox/ | ||
| .nox/ | ||
| .cache/ | ||
| nosetests.xml | ||
| coverage.xml | ||
| *.cover | ||
| *.py,cover | ||
| .hypothesis/ | ||
| # Frontend | ||
| frontend/node_modules | ||
| frontend/.next | ||
| frontend/dist | ||
| frontend/out | ||
| frontend/.env* | ||
| frontend/*.log | ||
|
|
||
| # IDE and editor files | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # OS files | ||
| .DS_Store | ||
| .DS_Store? | ||
| ._* | ||
| .Spotlight-V100 | ||
| .Trashes | ||
| ehthumbs.db | ||
| Thumbs.db | ||
|
|
||
|
|
||
| .quarentena/ | ||
| surreal_single_data/ | ||
| # Project | ||
| .antigravity | ||
| .gemini | ||
| tmp | ||
| data | ||
| mydata | ||
| *.db | ||
| *.log | ||
| docker.env | ||
| .env |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,11 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Prompt for AI agents |
||
| # Install system dependencies required for building certain Python packages | ||
| # Add Node.js 20.x LTS for building frontend | ||
| RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | ||
| gcc g++ git make \ | ||
| # NOTE: gcc/g++/make removed - uv should download pre-built wheels. Add back if build fails. | ||
| # NOTE: gcc/g++/make required for some python dependencies | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| curl \ | ||
| build-essential \ | ||
| && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
| && apt-get install -y nodejs \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
@@ -35,7 +37,11 @@ COPY . /app | |
|
|
||
| # Install frontend dependencies and build | ||
| WORKDIR /app/frontend | ||
| ARG NPM_REGISTRY=https://registry.npmjs.org/ | ||
| COPY frontend/package.json frontend/package-lock.json ./ | ||
| RUN npm config set registry ${NPM_REGISTRY} | ||
| RUN npm ci | ||
| COPY frontend/ ./ | ||
| RUN npm run build | ||
|
|
||
| # Return to app root | ||
|
|
@@ -46,7 +52,7 @@ FROM python:3.12-slim-bookworm AS runtime | |
|
|
||
| # Install only runtime system dependencies (no build tools) | ||
| # Add Node.js 20.x LTS for running frontend | ||
| RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am concerned that removing upgrade could expose the app to vulnerability. Why did you propose this? Any special reason? |
||
| RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | ||
| ffmpeg \ | ||
| supervisor \ | ||
| curl \ | ||
|
|
@@ -63,8 +69,8 @@ WORKDIR /app | |
| # Copy the virtual environment from builder stage | ||
| COPY --from=builder /app/.venv /app/.venv | ||
|
|
||
| # Copy the application code | ||
| COPY --from=builder /app /app | ||
| # Copy the source code (the rest) | ||
| COPY . /app | ||
|
|
||
| # Ensure uv uses the existing venv without attempting network operations | ||
| ENV UV_NO_SYNC=1 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.