hundreds-baker-75079
05/02/2024, 12:07 AM=> ERROR [builder 6/6] RUN : --mount=type=cache,target=/root/.yarn && mkdir /app && cp -R ./website/console/dist/* /app 0.2s
------
> [builder 6/6] RUN : --mount=type=cache,target=/root/.yarn && mkdir /app && cp -R ./website/console/dist/* /app:
#14 0.189 cp: cannot stat './website/console/dist/*': No such file or directory
any help would be appreciated
# syntax=docker/dockerfile:experimental
FROM node:21.6.0 as builder
LABEL org.opencontainers.image.source <https://github.com/flyteorg/flyteconsole>
ARG TARGETARCH
ENV npm_config_target_arch "${TARGETARCH}"
ENV npm_config_target_platform linux
ENV npm_config_target_libc glibc
WORKDIR /my-project/
COPY . /my-project/
# install production dependencies
RUN : \
--mount=type=cache,target=/root/.yarn \
&& yarn workspaces focus --all
# build console web app
RUN : \
--mount=type=cache,target=/root/.yarn \
&& BASE_URL=/console yarn workspace @clients/console run build
# copy console build to /app
RUN : \
--mount=type=cache,target=/root/.yarn \
&& mkdir /app \
&& cp -R ./website/console/dist/* /app
FROM <http://gcr.io/distroless/nodejs|gcr.io/distroless/nodejs>
LABEL org.opencontainers.image.source <https://github.com/flyteorg/flyteconsole>
COPY --from=builder /app app
WORKDIR /app
ENV NODE_ENV=development BASE_URL=/console PORT=8080
EXPOSE 8080
USER 1000
CMD ["server.js"]
average-finland-92144
05/02/2024, 4:58 PM./website/console/dist/
folder?hundreds-baker-75079
05/02/2024, 6:39 PMbuild
instead of build:prod
(which is committed in oss), the command seems to always be listening and doesn't terminate:
server (webpack 5.90.3) compiled with 1 warning in 21356 ms
I wonder if that is what causes this issue