-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Description of problem
Trying to install ubuntu with golang + extra packages
But I get a error message
How reproducible
Use this DockerFile:
FROM amd64/ubuntu:18.04
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends build-essential mercurial git subversion wget curl bzr libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
# Cleanup
RUN apt-get clean && \
rm -rf /var/lib/apt
# env vars
ENV HOME /root
ENV GOPATH /root/go
ENV PATH /root/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# GOPATH
RUN mkdir -p /root/go
RUN wget -qO- http://golang.org/dl/go1.16.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ADD . /app
WORKDIR /app
RUN CGO_ENABLED=1 GOOS=linux GO111MODULE="on" \
&& go build -o bin/kobu-server -v
EXPOSE 8080
RUN chmod +x bin/kobu-server
Actual Results
Step 8/16 : RUN wget -qO- http://golang.org/dl/go1.16.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
---> Running in 94ccef3892fb
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
remote: The command '/bin/sh -c wget -qO- http://golang.org/dl/go1.16.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -' returned a non-zero code: 2
remote:
Expected Results
Builded and Running server
dokku report APP_NAME output
-----> uname: Linux gaming-pc 5.10.36-2-MANJARO #1 SMP PREEMPT Tue May 11 19:38:44 UTC 2021 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem.: 7927 3766 318 371 3842 3580
Swap: 9011 0 9011
-----> docker version:
Client:
Version: 20.10.6
API version: 1.41
Go version: go1.16.3
Git commit: 370c28948e
Built: Mon Apr 12 14:10:41 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Manjaro Linux on a PC
Additional information
golang application
Metadata
Metadata
Assignees
Labels
No labels