fix docker setup
This commit is contained in:
@@ -2,23 +2,12 @@ FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install bash for better shell capabilities
|
||||
ENV NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_UPDATE_NOTIFIER=false
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# Copy package manifests and install dependencies (incl. workspaces)
|
||||
COPY package.json package-lock.json ./
|
||||
COPY apps/website/package.json apps/website/package.json
|
||||
RUN npm ci --workspaces --include-workspace-root
|
||||
RUN find ./node_modules -name "next" -print || true # Debugging line
|
||||
|
||||
# Copy sources for development (monorepo)
|
||||
COPY apps/website apps/website/
|
||||
COPY core core/
|
||||
COPY adapters adapters/
|
||||
COPY scripts scripts/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Run from the correct workspace context
|
||||
CMD ["npm", "run", "dev", "--workspace=@gridpilot/website"]
|
||||
CMD ["sh", "-lc", "npm run dev --workspace=@gridpilot/website"]
|
||||
Reference in New Issue
Block a user