Skip to content

Commit 9eb5881

Browse files
committed
fix image build
Signed-off-by: Philippe Martin <[email protected]>
1 parent 171b48c commit 9eb5881

File tree

4 files changed

+6
-25
lines changed

4 files changed

+6
-25
lines changed

build/Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WORKDIR /opt/app-root/extension-source
2121

2222
# copy source code
2323
COPY --chown=1001:root *.ts /opt/app-root/extension-source/
24-
COPY --chown=1001:root pnpm-workspace-image-build.yaml /opt/app-root/extension-source/pnpm-workspace.yaml
24+
COPY --chown=1001:root pnpm-workspace.yaml /opt/app-root/extension-source/pnpm-workspace.yaml
2525
COPY --chown=1001:root pnpm-lock.yaml /opt/app-root/extension-source/
2626
COPY --chown=1001:root .gitignore /opt/app-root/extension-source/
2727
COPY --chown=1001:root package.json /opt/app-root/extension-source/
@@ -54,7 +54,7 @@ RUN echo "node-linker=hoisted" >> /opt/app-root/extension/.npmrc
5454
RUN eval 'dep_version() { pnpm list -P $1 --json --depth 0 |jq -r ".[0].dependencies.\"$1\".version"; };' && \
5555
ISOMORPHIC_WS_VERSION=$(dep_version "isomorphic-ws") && \
5656
echo adding isomorphic-ws version ${ISOMORPHIC_WS_VERSION} && \
57-
pnpm --dir /opt/app-root/extension add isomorphic-ws@${ISOMORPHIC_WS_VERSION} --prod
57+
pnpm --dir /opt/app-root/extension --workspace-root add isomorphic-ws@${ISOMORPHIC_WS_VERSION} --prod
5858

5959
# Copy the extension to a new image
6060
FROM scratch

pnpm-lock.yaml

Lines changed: 3 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace-image-build.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
packages:
22
- packages/*
3-
- 'tests/*'
3+
- tests/*
44

55
onlyBuiltDependencies:
66
- esbuild

0 commit comments

Comments
 (0)