mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
use /usr/src/moby instead, and no GOPATH
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -95,7 +95,7 @@ After=firewalld.service
|
||||
Type=oneshot
|
||||
ExecStart=/bin/true
|
||||
RemainAfterExit=true
|
||||
ExecStop=cp /var/log/firewalld /go/src/github.com/moby/moby/v2/bundles/firewalld.log
|
||||
ExecStop=cp /var/log/firewalld /usr/src/moby/bundles/firewalld.log
|
||||
|
||||
[Install]
|
||||
WantedBy=firewalld.service
|
||||
|
||||
@@ -17,7 +17,7 @@ RUN <<EOT
|
||||
wget -q https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-${TARGETOS}-${arch}.zip
|
||||
unzip protoc-${PROTOC_VERSION}-${TARGETOS}-${arch}.zip -d /usr/local
|
||||
EOT
|
||||
WORKDIR /go/src/github.com/moby/moby
|
||||
WORKDIR /usr/src/moby
|
||||
|
||||
FROM base AS src
|
||||
WORKDIR /out
|
||||
|
||||
@@ -5,7 +5,7 @@ ARG GOVULNCHECK_VERSION=v1.1.4
|
||||
ARG FORMAT=text
|
||||
|
||||
FROM golang:${GO_VERSION}-alpine AS base
|
||||
WORKDIR /go/src/github.com/moby/moby
|
||||
WORKDIR /usr/src/moby
|
||||
RUN apk add --no-cache jq moreutils
|
||||
ARG GOVULNCHECK_VERSION
|
||||
ADD https://github.com/golang/vuln.git?ref=${GOVULNCHECK_VERSION}&keep-git-dir=1 /go/src/golang.org/x/vuln
|
||||
|
||||
Reference in New Issue
Block a user