FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
src-cli/Dockerfile at main · sourcegraph/src-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
sourcegraph
/
src-cli
Public
Notifications
You must be signed in to change notification settings
Fork
76
Star
353
Code
Issues
4
Pull requests
11
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
src-cli
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (16 loc) · 795 Bytes
Breadcrumbs
src-cli
/
Dockerfile
Copy path
File metadata and controls
20 lines (16 loc) · 795 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
Since we're going to provide images based on Alpine, we also want to build on
#
Alpine, rather than relying on the ./src in the surrounding environment to be
#
sane.
#
#
Nothing fancy here: we copy in the source code and build on the Alpine Go
#
image. Refer to .dockerignore to get a sense of what we're not going to copy.
FROM
golang:1.26.5-alpine3.23@sha256:622e56dbc11a8cfe87cafa2331e9a201877271cbff918af53d3be315f3da88cc AS builder
COPY
. /src
WORKDIR
/src
RUN
go build ./cmd/src
#
This stage should be kept in sync with Dockerfile.release.
FROM
alpine:3.22@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
#
needed for `src code-intel upload` and `src actions exec`
RUN
apk add --no-cache git
COPY
--from=builder /src/src /usr/bin/
ENTRYPOINT
[
"/usr/bin/src"
]
Back
|
FazBrowse Home
|
New Git URL