mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
Reintroduces the same changes as https://github.com/sourcegraph/sourcegraph/pull/51104 minus syntax-highlighter which we're unable to compile with the right toolchain at the moment. Tested as a full main-dry-run, as well as running the stack with compose and checking indexing and syntax-highlighting. Executors are also built correctly. ## Test plan CI + manual test via compose. --------- Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
31 lines
1.4 KiB
Docker
31 lines
1.4 KiB
Docker
# This Dockerfile was generated from github.com/sourcegraph/godockerize. It
|
|
# was not written by a human, and as such looks janky. As you change this
|
|
# file, please don't be scared to make it more pleasant / remove hadolint
|
|
# ignores.
|
|
|
|
FROM sourcegraph/alpine-3.14:213466_2023-04-17_5.0-bdda34a71619@sha256:6354a4ff578b685e36c8fbde81f62125ae0011b047fb2cc22d1b0de616b3c59a
|
|
|
|
RUN apk --no-cache add pcre sqlite-libs libev
|
|
|
|
# The comby/comby image is a small binary-only distribution. See the bin and src directories
|
|
# here: https://github.com/comby-tools/comby/tree/master/dockerfiles/alpine
|
|
# hadolint ignore=DL3022
|
|
COPY --from=comby/comby:alpine-3.14-1.8.1@sha256:a5e80d6bad6af008478679809dc8327ebde7aeff7b23505b11b20e36aa62a0b2 /usr/local/bin/comby /usr/local/bin/comby
|
|
|
|
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}
|
|
|
|
# Use SEARCHER_CACHE_DIR to set the cache dir at runtime for searcher. Setting CACHE_DIR will also
|
|
# apply to other services and is deprecated.
|
|
ENV CACHE_DIR=/mnt/cache/searcher
|
|
RUN mkdir -p ${CACHE_DIR} && chown -R sourcegraph:sourcegraph ${CACHE_DIR}
|
|
USER sourcegraph
|
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/searcher"]
|
|
COPY searcher /usr/local/bin/
|