Changed DOCKERFILE with existing hub image
devregnfo opened this issue · 0 comments
Hi,
Because I found no images at the hub, I tried to figure out how to change the Dockerfile to the latest availlable.
I managed to edit the DOCKERFILE to meet the HUB images availlable, and also updated my "golang" packages accordingly:
HUB IMAGE: "golang:1.21.3-alpine3.18"
GOLANG: "go1.21.3 linux/amd64"
Then changed and added the lines to DOCKERFILE:
ARG ALPINE_VERSION=3.18
ARG GO_VERSION=1.21.3
ARG BUILDPLATFORM=linux/amd64
FROM --platform=${BUILDPLATFORM} ${BAS...
so that it downloads and builds only for linux/amd64.
(at my git clone) $home/repo /lazydocker/.
~$ docker build -t lazyteam/lazydocker \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg VERSION=`git describe --abbrev=0 --tag` \
.
~$ docker run -t -i --rm golang:1.21.3-alpine3.18
(I got a CLI prompt!!!)
The only problem is that when I first built the image, it left some ghost "containers" when I listed them:
~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
**_<none> <none> e4aa89934cbf 3 minutes ago 58.5MB_**
_**lazyteam/lazydocker latest eaf65b223b34 3 minutes ago 58.5MB**_
debian buster-slim 2194d52c5ca6 2 weeks ago 69.3MB
debian buster 75719d2c3a70 2 weeks ago 114MB
golang 1.21.3-alpine3.18 95ab9ef00f5d 2 weeks ago 222MB
hello-world latest 9c7a54a9a43c 5 months ago 13.3kB
nvidia/cuda 11.4.3-cudnn8-devel-ubuntu20.04 2412cc8a5eba 6 months ago 9.15GB
nvidia/cuda 11.4.3-devel-ubuntu20.04 fdf13331ca2f 6 months ago 5.22GB
**_lazyteam/lazydocker <none> 6518a6686572 17 months ago 55.7MB_**
nvidia/cuda 11.4.3-cudnn8-devel-ubuntu18.04 90b42b6501f7 18 months ago 9.11GB
nvidia/cuda 11.4.3-devel-ubuntu18.04 276f5ba1556a 18 months ago 5.18GB
Alpine is there, from golang.
But lazyteam/lazydocker have no TAGs
I guess I messed up! My bad!