fix: remove duplicate endpoints.ts, fix Login imports
Build and Deploy / build (push) Failing after 10s
Build and Deploy / docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped

- Remove web/src/api/endpoints.ts (redundant with index.ts)
- Fix Login.tsx to use useLogin hook
- Simplify Dockerfile (use CI-built artifacts)
This commit is contained in:
2026-07-20 20:00:41 +00:00
parent 6ffa2ecdfb
commit c3e834a2b4
3 changed files with 10 additions and 97 deletions
+3 -23
View File
@@ -1,28 +1,8 @@
# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
# Install pnpm
RUN corepack enable && corepack prepare pnpm@9 --activate
# Copy package files
COPY web/package.json web/pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy source
COPY web/ ./
# Build
RUN pnpm build
# Production stage
# Production stage - only needs nginx and built files
FROM nginx:alpine
# Copy built files
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy built files (from CI artifact or local build)
COPY web/dist /usr/share/nginx/html
# Copy nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf