We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b04c71 + c7687d7 commit 2d36532Copy full SHA for 2d36532
Dockerfile-api
@@ -1,4 +1,4 @@
1
-FROM registry.cn-hongkong.aliyuncs.com/merico/node:lts_base_v2
+FROM docker.io/node:16 as installer
2
3
ENV YARN_NPM_REGISTRY_SERVER=https://registry.npmmirror.com
4
@@ -9,7 +9,15 @@ COPY api /code/api
9
WORKDIR /code/api/_build
10
11
ENV YARN_VERSION 3.6.1
12
+ENV YARN_IGNORE_NODE 1
13
14
RUN yarn set version $YARN_VERSION
15
16
RUN yarn install
17
+
18
+FROM registry.cn-hongkong.aliyuncs.com/merico/node:lts_base_v2
19
20
+COPY --from=installer /code/api/_build /code/api/_build
21
22
+WORKDIR /code/api/_build
23
0 commit comments