Update Dockerfile and tsconfig.json for proper type definitions
This commit is contained in:
@@ -12,6 +12,7 @@ COPY backend/package*.json ./backend/
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
RUN cd frontend && npm install --save-dev @types/react @types/react-dom @types/react-router-dom @types/axios
|
||||
RUN cd backend && npm install && npm install --save-dev @types/node @types/express @types/multer @types/cors @types/sqlite3
|
||||
|
||||
# Copy source files
|
||||
COPY . .
|
||||
@@ -42,6 +43,9 @@ COPY --from=builder /app/backend/dist ./dist
|
||||
COPY --from=builder /app/frontend/build ./frontend/build
|
||||
COPY --from=builder /app/database.sqlite ./database.sqlite
|
||||
|
||||
# Create uploads directory
|
||||
RUN mkdir -p uploads/wallpapers
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"typeRoots": ["./node_modules/@types"],
|
||||
"types": ["node", "express", "multer"]
|
||||
"typeRoots": ["../node_modules/@types", "./node_modules/@types"],
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
|
||||
Reference in New Issue
Block a user