fix: TS errors + Docker Compose running locally
- Removed unused imports (PublicRoute, GripVertical, addFromRecipe, X, ShoppingGroup) - Fixed HouseholdCard unused var - Fixed ShoppingPage household query (missing queryFn) - Killed tmux sessions, app runs fully on Docker now - 3 containers: db (postgres:17), backend (node:22), frontend (nginx)
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
FROM node:22-alpine AS base
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
RUN npm ci
|
||||
|
||||
# Copy source
|
||||
COPY src/ src/
|
||||
COPY .env* ./
|
||||
COPY tsconfig.json ./
|
||||
|
||||
# Install tsx for running TypeScript
|
||||
RUN npm install -g tsx
|
||||
|
||||
EXPOSE 6001
|
||||
|
||||
CMD ["tsx", "src/index.ts"]
|
||||
CMD ["npx", "tsx", "src/index.ts"]
|
||||
|
||||
Reference in New Issue
Block a user