go-webserver-template (7)

Published 2024-06-20 21:21:55 +10:00 by nathanwoodburn in nathanwoodburn/go-webserver-template

Installation

docker pull git.woodburn.au/nathanwoodburn/go-webserver-template:7
sha256:c6fe3201763fa9e51357bbb6932f4b095577e4061087024d3316fbf412e6815d

Image Layers

ADD file:b532f8e401e9a1fcc2ea1fc034adf820a5269c6ace45769f60a81fcb673f01b8 in /
CMD ["bash"]
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/*
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends g++ gcc libc6-dev make pkg-config ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GOLANG_VERSION=1.21.11
ENV GOTOOLCHAIN=local
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /target/ / # buildkit
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
WORKDIR /go
WORKDIR /app
COPY main.go ./ # buildkit
COPY go.mod ./ # buildkit
COPY go.sum ./ # buildkit
COPY templates ./templates/ # buildkit
RUN /bin/sh -c go get # buildkit
RUN /bin/sh -c go build main.go # buildkit
EXPOSE map[3000/tcp:{}]
CMD ["./main"]
Details
Container
2024-06-20 21:21:55 +10:00
0
OCI / Docker
linux/amd64
305 MiB
Versions (6) View all
latest 2024-06-22
8 2024-06-22
7 2024-06-20
3 2024-06-17
2 2024-06-17