mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 11:02:55 +01:00
Update Dockerfile.zoekt-ci-image-1.2
This commit is contained in:
parent
6ee36f684f
commit
aa2f1affe3
2 changed files with 5 additions and 5 deletions
24
Dockerfile.zoekt-ci-image-1.3
Normal file
24
Dockerfile.zoekt-ci-image-1.3
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM golang:1.20.0-alpine3.17 as build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apk add git
|
||||
|
||||
ENV ZOEKT_VERSION=fcb279ae404c0aa102121b28257143ad16e77482
|
||||
ENV GITLAB_ZOEKT_INDEXER_VERSION=266c8da32eeb80a1cd94db16fdd355ccf3fa5827
|
||||
|
||||
RUN apk add go && \
|
||||
go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver@$ZOEKT_VERSION && \
|
||||
go install gitlab.com/gitlab-org/gitlab-zoekt-indexer/cmd/gitlab-zoekt-indexer@$GITLAB_ZOEKT_INDEXER_VERSION && \
|
||||
rm -rf /go/pkg /go/src /usr/local/go
|
||||
|
||||
FROM alpine:3.17 as main
|
||||
|
||||
COPY --from=build /go/bin/* /usr/bin/
|
||||
|
||||
COPY assets/zoekt-ci-image/run-zoekt-servers-with-new-indexer run-zoekt-servers
|
||||
|
||||
EXPOSE 6060
|
||||
EXPOSE 6070
|
||||
|
||||
CMD ["sh", "run-zoekt-servers"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue