From 94abb7388b2ef16a3aaf95bfdec85b59b755d54d Mon Sep 17 00:00:00 2001 From: Lucas Oskorep Date: Sun, 1 Feb 2026 03:33:50 -0500 Subject: [PATCH] feat: remove useless comments and fix --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13b4d8e..c1bfa92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,40 +1,31 @@ -# Stage 1: Build the Next.js frontend FROM docker.io/library/node:25 AS frontend-builder LABEL authors="lucasoskorep" WORKDIR /build/mta-sign-ui -# Copy package files first for better caching COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./ -# Enable corepack and install pnpm from packageManager field RUN npm install -g pnpm -# Copy the rest of the frontend source COPY mta-sign-ui/ ./ -# Build the static export (outputs to 'out' directory) +RUN pnpm install RUN pnpm build -# Stage 2: Python backend with frontend static files FROM ghcr.io/astral-sh/uv:python3.13-bookworm LABEL authors="lucasoskorep" WORKDIR /app -# Copy dependency files and install dependencies only (not the project itself) COPY pyproject.toml uv.lock README.md ./ RUN uv sync --frozen --no-dev --no-install-project -# Copy source code COPY mta_api_client ./mta_api_client COPY mta_sign_server ./mta_sign_server COPY main.py stops.txt ./ -# Copy the built frontend from the first stage COPY --from=frontend-builder /build/mta-sign-ui/out ./static -# Now install the project RUN uv sync --frozen --no-dev EXPOSE 8000