File: Dockerfile

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (18 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:current
RUN npm install -g @microsoft/rush
RUN git clone --depth 1 https://github.com/Azure/azure-sdk-for-js.git /azure-sdk
WORKDIR /azure-sdk
RUN rush update
WORKDIR /azure-sdk/sdk/core/core-http
# Sync up all TS versions used internally so they're all linked from a known location
RUN rush add -p "typescript@3.5.1" --dev -m
# Relink installed TSes to built TS
WORKDIR /azure-sdk/common/temp/node_modules/.pnpm/registry.npmjs.org/typescript/3.5.1/node_modules
RUN rm -rf typescript
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
RUN mkdir /typescript
RUN tar -xzvf /typescript.tgz -C /typescript
RUN ln -s /typescript/package ./typescript
WORKDIR /azure-sdk
ENTRYPOINT [ "rush" ]
CMD [ "rebuild", "--parallelism", "1" ]