mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
Add Dockerfiles and build scripts for building Wolfi-based images for every container Progress tracked in https://github.com/sourcegraph/security/issues/447 ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> * Green CI * These changes will not be made live until each image undergoes full validation - [x] `main-dry-run` prior to merging https://buildkite.com/sourcegraph/sourcegraph/builds/214773#_
23 lines
943 B
Docker
23 lines
943 B
Docker
# Dockerfile for Wolfi-based images
|
|
# This is currently being tested in parallel to Alpine - you don't need to update this
|
|
# file if you change the regular Dockerfile.
|
|
|
|
# hadolint ignore=DL3007
|
|
FROM us.gcr.io/sourcegraph-dev/wolfi-sourcegraph-base:latest
|
|
|
|
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}
|
|
|
|
ENV CONFIGURATION_MODE=server PGDATABASE=sg PGHOST=pgsql PGPORT=5432 PGSSLMODE=disable PGUSER=sg CODEINTEL_PGDATABASE=sg CODEINTEL_PGHOST=codeintel-db CODEINTEL_PGPORT=5432 CODEINTEL_PGSSLMODE=disable CODEINTEL_PGUSER=sg PUBLIC_REPO_REDIRECTS=true
|
|
USER sourcegraph
|
|
|
|
CMD ["serve"]
|
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/frontend"]
|
|
COPY frontend /usr/local/bin/
|