8th_fix docker

This commit is contained in:
beabigegg
2025-09-03 18:08:40 +08:00
parent 3b1bbcd2bc
commit a339b78788
13 changed files with 926 additions and 2 deletions

60
frontend/.dockerignore Normal file
View File

@@ -0,0 +1,60 @@
node_modules
.git
.next
out
build
dist
coverage
# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.log
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Coverage directory used by tools like istanbul
coverage/
*.lcov
# nyc test coverage
.nyc_output
# IDE files
.vscode/
.idea/
*.swp
*.swo
# OS files
.DS_Store
Thumbs.db
*.tmp
*.temp
# Documentation
README.md
CHANGELOG.md
LICENSE
docs/
# Docker files
Dockerfile*
.dockerignore
docker-compose*.yml
# Git files
.gitignore
.gitattributes

View File

@@ -7,7 +7,7 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json* ./
RUN npm ci --only=production
RUN npm ci
# Rebuild the source code only when needed
FROM base AS builder
@@ -15,6 +15,10 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Set build-time environment variables
ARG NEXT_PUBLIC_API_URL=http://localhost:12011
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
# Build the application
RUN npm run build

View File

@@ -52,6 +52,7 @@ interface TodoImportData {
due_date: string | null;
responsible_users: string[];
followers: string[];
is_public: boolean;
}
const ExcelImport: React.FC<ExcelImportProps> = ({ open, onClose, onImportComplete }) => {

View File

@@ -67,6 +67,7 @@ interface LocalTodo {
creator?: User;
responsible: User[];
isPublic: boolean;
tags?: string[];
}
interface TodoDialogProps {

View File

@@ -24,6 +24,7 @@ export interface Todo {
followers: string[];
responsible_users_details?: UserDetail[];
followers_details?: UserDetail[];
tags?: string[];
}
export interface TodoCreate {
@@ -36,6 +37,7 @@ export interface TodoCreate {
is_public?: boolean;
responsible_users?: string[];
followers?: string[];
tags?: string[];
}
export interface TodoUpdate extends Partial<TodoCreate> {