fix docker setup
This commit is contained in:
@@ -5,14 +5,16 @@ WORKDIR /app
|
||||
# Install bash for better shell capabilities
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# Copy root package.json and install dependencies
|
||||
# Copy package manifests and install dependencies (incl. workspaces)
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
RUN npm ci --workspaces --include-workspace-root
|
||||
RUN find ./node_modules -name "ts-node-dev" -print || true # Debugging line
|
||||
|
||||
# Copy apps/api and packages for development
|
||||
# Copy sources for development (monorepo)
|
||||
COPY apps/api apps/api/
|
||||
COPY packages core/
|
||||
COPY core core/
|
||||
COPY adapters adapters/
|
||||
COPY apps/api/tsconfig.json apps/api/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
@@ -21,4 +23,4 @@ EXPOSE 9229
|
||||
|
||||
# Command to run the NestJS application in development with hot-reloading
|
||||
# Run from the correct workspace context
|
||||
CMD ["npm", "run", "start:dev", "--workspace=api"]
|
||||
CMD ["npm", "run", "start:dev", "--workspace=@gridpilot/api"]
|
||||
|
||||
Reference in New Issue
Block a user