mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +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#_
22 lines
710 B
Docker
22 lines
710 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 LOG_REQUEST=true
|
|
USER sourcegraph
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/github-proxy"]
|
|
COPY github-proxy /usr/local/bin/
|