mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
sysctl: Add go.mod
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
This commit is contained in:
parent
af7b87e99a
commit
3244052389
@ -1,11 +1,11 @@
|
||||
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
# Hack to work around an issue with go on arm64 requiring gcc
|
||||
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
||||
|
||||
COPY main.go /go/src/sysctl/
|
||||
COPY . /go/src/sysctl/
|
||||
RUN go-compile.sh /go/src/sysctl
|
||||
|
||||
FROM scratch
|
||||
|
3
pkg/sysctl/go.mod
Normal file
3
pkg/sysctl/go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module github.com/linuxkit/linuxkit/pkg/sysctl
|
||||
|
||||
go 1.15
|
Loading…
Reference in New Issue
Block a user