6 Commits

Author SHA1 Message Date
Renovate Bot
d5a7a0527d chore(deps): update all-major-updates
All checks were successful
Build and Push Docker Image / build (pull_request) Successful in 2m59s
2026-02-06 23:16:10 +00:00
Lucas Oskorep
6dbb67ba84 Merge pull request 'chore(deps): update all-dependencies - abandoned' (#3) from renovate/all into main
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m21s
Reviewed-on: #3
2026-02-01 03:37:31 -05:00
Lucas Oskorep
94abb7388b feat: remove useless comments and fix
All checks were successful
Build and Push Docker Image / build (pull_request) Successful in 3m9s
2026-02-01 03:33:50 -05:00
Lucas Oskorep
c1f940fa57 nit: update comment
Some checks failed
Build and Push Docker Image / build (pull_request) Failing after 32s
2026-02-01 02:58:49 -05:00
Lucas Oskorep
03e8fa18f3 feat: fixing package dependencies
Some checks failed
Build and Push Docker Image / build (pull_request) Failing after 15s
2026-02-01 01:55:09 -05:00
Renovate Bot
a7861455d9 chore(deps): update all-dependencies
Some checks failed
Build and Push Docker Image / build (pull_request) Failing after 16s
2026-01-30 20:02:26 +00:00
8 changed files with 437 additions and 324 deletions

View File

@@ -1,43 +1,31 @@
# Stage 1: Build the Next.js frontend FROM docker.io/library/node:25 AS frontend-builder
FROM docker.io/library/node:25-alpine AS frontend-builder
LABEL authors="lucasoskorep" LABEL authors="lucasoskorep"
WORKDIR /build/mta-sign-ui WORKDIR /build/mta-sign-ui
# Enable corepack for pnpm
RUN corepack enable && corepack prepare pnpm@10.28.1 --activate
# Copy package files first for better caching
COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./ COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./
# Install dependencies (use frozen-lockfile if lock exists, otherwise generate) RUN npm install -g pnpm
RUN pnpm install
# Copy the rest of the frontend source
COPY mta-sign-ui/ ./ COPY mta-sign-ui/ ./
# Build the static export (outputs to 'out' directory) RUN pnpm install
RUN pnpm build RUN pnpm build
# Stage 2: Python backend with frontend static files
FROM ghcr.io/astral-sh/uv:python3.13-bookworm FROM ghcr.io/astral-sh/uv:python3.13-bookworm
LABEL authors="lucasoskorep" LABEL authors="lucasoskorep"
WORKDIR /app WORKDIR /app
# Copy dependency files and install dependencies only (not the project itself)
COPY pyproject.toml uv.lock README.md ./ COPY pyproject.toml uv.lock README.md ./
RUN uv sync --frozen --no-dev --no-install-project RUN uv sync --frozen --no-dev --no-install-project
# Copy source code
COPY mta_api_client ./mta_api_client COPY mta_api_client ./mta_api_client
COPY mta_sign_server ./mta_sign_server COPY mta_sign_server ./mta_sign_server
COPY main.py stops.txt ./ COPY main.py stops.txt ./
# Copy the built frontend from the first stage
COPY --from=frontend-builder /build/mta-sign-ui/out ./static COPY --from=frontend-builder /build/mta-sign-ui/out ./static
# Now install the project
RUN uv sync --frozen --no-dev RUN uv sync --frozen --no-dev
EXPOSE 8000 EXPOSE 8000

View File

@@ -65,9 +65,9 @@ build-ui:
# Build multi-arch container image # Build multi-arch container image
containers: containers:
podman build --platform linux/arm64,linux/amd64 -f docker/Dockerfile --manifest chaos2theory/pi-mta-sign:test . podman build --platform linux/arm64,linux/amd64 -f Dockerfile --manifest chaos2theory/pi-mta-sign:test .
podman manifest push --all chaos2theory/pi-mta-sign:test podman manifest push --all chaos2theory/pi-mta-sign:test
podman manifest rm chaos2theory/pi-mta-sign:test podman manifest rm chaos2theory/pi-mta-sign:testpod
# Build container image (local arch only) # Build container image (local arch only)
build-container: build-container:

View File

@@ -1 +0,0 @@
24

View File

@@ -1,6 +1,6 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts"; import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@@ -22,7 +22,7 @@
"postcss": "^8.5.1", "postcss": "^8.5.1",
"react": "^19.0.0", "react": "^19.0.0",
"react-dom": "^19.0.0", "react-dom": "^19.0.0",
"tailwindcss": "^4.0.0" "tailwindcss": "^3.4.17"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/react": "^16.1.0", "@testing-library/react": "^16.1.0",
@@ -31,9 +31,9 @@
"@types/react-dom": "^19.0.3", "@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.0.0", "@vitejs/plugin-react": "^5.0.0",
"chokidar-cli": "^3.0.0", "chokidar-cli": "^3.0.0",
"eslint": "^9.18.0", "eslint": "^10.0.0",
"eslint-config-next": "^16.1.2", "eslint-config-next": "^16.1.2",
"jsdom": "^27.0.0", "jsdom": "^28.0.0",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"vitest": "^4.0.0" "vitest": "^4.0.0"
}, },

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "react-jsx", "jsx": "react-jsx",

View File

@@ -1,3 +1,9 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json" "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchPackageNames": ["tailwindcss"],
"allowedVersions": "<4.0.0"
}
]
} }