Skip to content

Commit 2d36532

Browse files
authored
Merge pull request #1253 from merico-dev/fix-api-build
build: install with node@16
2 parents 0b04c71 + c7687d7 commit 2d36532

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile-api

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.cn-hongkong.aliyuncs.com/merico/node:lts_base_v2
1+
FROM docker.io/node:16 as installer
22

33
ENV YARN_NPM_REGISTRY_SERVER=https://registry.npmmirror.com
44

@@ -9,7 +9,15 @@ COPY api /code/api
99
WORKDIR /code/api/_build
1010

1111
ENV YARN_VERSION 3.6.1
12+
ENV YARN_IGNORE_NODE 1
1213

1314
RUN yarn set version $YARN_VERSION
1415

1516
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

Comments
 (0)