File tree Expand file tree Collapse file tree 3 files changed +22
-41
lines changed
Expand file tree Collapse file tree 3 files changed +22
-41
lines changed Original file line number Diff line number Diff line change 3939 sourcegraph/scip-typescript:${{ env.PATCH }}
4040 sourcegraph/scip-typescript:${{ env.MINOR }}
4141 sourcegraph/scip-typescript:${{ env.MAJOR }}
42- - name : Build and push
43- id : docker_build_autoindex
44- uses : docker/build-push-action@v3
45- with :
46- file : Dockerfile.autoindex
47- push : true
48- tags : sourcegraph/scip-typescript:autoindex
Original file line number Diff line number Diff line change 1- # Keep in sync with Dockerfile.autoindex
2- FROM node:20.8.1-alpine3.18 @sha256:1ccb0c0ded3b21cee95fe6b6ce1ac23bd6680c8f152cbfb3047d5d9ea490b098
1+ # Keep in sync with default Dockerfile
2+ FROM node:22.12.0-slim @sha256:a4b757cd491c7f0b57f57951f35f4e85b7e1ad54dbffca4cf9af0725e1650cd8
33
4- ARG TAG
4+ ENV NODE_OPTIONS=--max-old-space-size=4096
55
6- RUN apk add --no-cache git curl
6+ RUN apt update && \
7+ apt install -y git bash curl ca-certificates python3 make build-essential automake autoconf curl && \
8+ rm -rf /var/lib/apt/lists/* && \
9+ npm install -g n yarn pnpm --force
710
8- RUN yarn global add npm yarn
11+ WORKDIR /app
912
10- RUN yarn global add @sourcegraph/scip-typescript@${TAG} @sourcegraph/src
13+ COPY . .
14+ RUN npm install && npm run build && npm install -g .
1115
12- CMD ["/bin/sh" ]
16+ WORKDIR /src
17+
18+ RUN mv /usr/local/bin/yarn /usr/local/bin/actual-yarn
19+ COPY ./dev/lenient-yarn.sh /usr/local/bin/yarn
20+
21+ RUN mv /usr/local/bin/npm /usr/local/bin/actual-npm
22+ COPY ./dev/lenient-npm.sh /usr/local/bin/npm
23+
24+ RUN mv /usr/local/bin/n /usr/local/bin/actual-n
25+ COPY ./dev/lenient-n.sh /usr/local/bin/n
26+
27+ ENTRYPOINT ["scip-typescript" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments