Issue
In a serverful Docker deployment I have one Dockerfile for web and one Dockerfile for api. However, the web seems to require that the api directory is being copied in to the image in order to be able to run yarn rw build web.
Example
FROM node:14 as builder
COPY web web
COPY .nvmrc .
COPY babel.config.js .
COPY graphql.config.js .
COPY package.json .
COPY redwood.toml .
COPY yarn.lock .
# Install dependencies
RUN yarn install --frozen-lockfile
# Build
RUN yarn rw build web
# [...]
Error

I think it's because the root package.jsons dependency to @redwoodjs/cli which has a dependency later to @redwoodjs/api-server. Not sure.
Anyone want to help me understand why this is, and how one can remove this dependency for web builds?
Thanks!
/cc @dac09 @peterp
Issue
In a serverful Docker deployment I have one
Dockerfilefor web and oneDockerfilefor api. However, the web seems to require that theapidirectory is being copied in to the image in order to be able to runyarn rw build web.Example
Error

I think it's because the root package.jsons dependency to
@redwoodjs/cliwhich has a dependency later to@redwoodjs/api-server. Not sure.Anyone want to help me understand why this is, and how one can remove this dependency for web builds?
Thanks!
/cc @dac09 @peterp