File: Dockerfile

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (17 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM node:current
RUN git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
ENV PATH=/depot_tools:$PATH
WORKDIR /
RUN mkdir devtools
WORKDIR devtools
RUN fetch devtools-frontend
WORKDIR devtools-frontend
RUN gn gen out/Default
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
RUN mkdir /typescript
RUN tar -xzvf /typescript.tgz -C /typescript
RUN ln -s /typescript/package ./node_modules/typescript
# We don't want to show the ordering of which tasks ran in Ninja, as that is non-deterministic.
# Instead, only show the errors in the log, from the first occurrence of a FAILED task.
# If the task passes, then there is no log written.
CMD ["autoninja", "-C", "out/Default", ">", "error.log", "||", "tail", "-n", "+$(sed", "-n", "'/FAILED/='", "error.log)", "error.log"]