FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/dev/src-expose/Dockerfile at master · dsp-testing/sourcegraph · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
dsp-testing
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
68
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
dev
/
src-expose
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (23 loc) · 1.19 KB
Breadcrumbs
sourcegraph
/
dev
/
src-expose
/
Dockerfile
Copy path
File metadata and controls
29 lines (23 loc) · 1.19 KB
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
21
22
23
24
25
26
27
28
29
FROM
sourcegraph/alpine:3.10@sha256:4d05cd5669726fc38823e92320659a6d1ef7879e62268adec5df658a0bacf65c
ARG
COMMIT_SHA=
"unknown"
ARG
DATE=
"unknown"
ARG
VERSION=
"unknown"
LABEL
org.opencontainers.image.revision=${COMMIT_SHA}
LABEL
org.opencontainers.image.created=${DATE}
LABEL
org.opencontainers.image.version=${VERSION}
LABEL
com.sourcegraph.github.url=https://github.com/sourcegraph/sourcegraph/commit/${COMMIT_SHA}
#
hadolint ignore=DL3018
RUN
apk add --no-cache git
#
Ensures that a directory with the correct permissions exist in the image. Without this, in Docker Compose
#
deployments the Docker daemon would first create the volume directory and it would be owned by `root` and
#
then a non-root process would be unable to create the `/app/data` because it
#
would be trying to do so in a directory owned by `root` as the user `sourcegraph`. And no, this is not
#
dumb, this is just Docker: https://github.com/docker/compose/issues/3270#issuecomment-363478501.
USER
root
RUN
mkdir -p /app/data && chown -R sourcegraph:sourcegraph /app/data
USER
sourcegraph
WORKDIR
/app/data/
VOLUME
[
"/app/data"
]
ENTRYPOINT
[
"/sbin/tini"
,
"--"
,
"/usr/local/bin/src-expose"
]
EXPOSE
3434
COPY
entry.sh src-expose /usr/local/bin/
Back
|
FazBrowse Home
|
New Git URL