Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit cd13f83

Browse files
author
Dongsu Park
authored
Merge pull request #60 from kinvolk/dongsu/fix-dockerfile-go
Dockerfile: install vanilla Go 1.16 instead of rpm
2 parents b2f8564 + 3f74f06 commit cd13f83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

traceloop-builder.Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
FROM fedora:26
22

33
ENV GOPATH /go
4+
ENV PATH "/usr/local/go/bin:$PATH"
45

56
# vim-common is needed for xxd
67
# vim-minimal needs to be updated first to avoid an RPM conflict on man1/vim.1.gz
78
RUN dnf update -y vim-minimal && \
8-
dnf install -y llvm clang kernel-devel make binutils vim-common golang go-bindata ShellCheck git file
9+
dnf install -y llvm clang kernel-devel make binutils vim-common go-bindata ShellCheck git file
910

1011
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 && \
1112
echo "b1925c2c405458811f0c227266402cf1868b4de529f114722c2e3a5af4ac7bb2 shfmt" | sha256sum -c && \
1213
chmod +x shfmt && \
1314
mv shfmt /usr/bin
15+
RUN curl -fsSLo go.tar.gz https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
16+
echo "7154e88f5a8047aad4b80ebace58a059e36e7e2e4eb3b383127a28c711b4ff59 go.tar.gz" | sha256sum -c && \
17+
mkdir -p /usr/local && \
18+
tar -C /usr/local -xzf go.tar.gz
1419
RUN go get -u github.com/fatih/hclfmt
1520

1621
RUN mkdir -p /src /go

0 commit comments

Comments
 (0)