-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 843 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:1.17.7-buster as builder
# v1.9.1
ENV INDEXER_COMMIT=93dad0336e50d00afdd5f3461d1ff798d3940562
WORKDIR /build
RUN git clone https://github.com/sourcegraph/lsif-go.git . && \
git checkout -q "${INDEXER_COMMIT}" && \
go install ./cmd/lsif-go
FROM golang:1.18.2-buster
LABEL version="0.4.1"
LABEL repository="http://github.com/sourcegraph/lsif-go-action"
LABEL homepage="http://github.com/sourcegraph/lsif-go-action"
LABEL maintainer="Sourcegraph Support <support@sourcegraph.com>"
LABEL "com.github.actions.name"="Sourcegraph Go LSIF Indexer"
LABEL "com.github.actions.description"="Generate LSIF data from Go source code"
LABEL "com.github.actions.icon"="code"
LABEL "com.github.actions.color"="purple"
COPY --from=builder /go/bin/lsif-go /go/bin/lsif-go
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]