awstest1 (latest)
Published 2 years ago by nicklas.wall
Installation
docker pull git.systementor.se/nicklas.wall/awstest1:latestsha256:f3d6c62aa6ee03e59495b53aeaee0f6e318aeb0e6ace6b5e583eb667266d6634Image Layers
| ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
| ENV GOLANG_VERSION=1.22.2 |
| 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 /usr/local/go/ /usr/local/go/ # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| RUN /bin/sh -c apk update && apk add --no-cache git # buildkit |
| WORKDIR /go/src/mypackage/myapp/ |
| COPY . . # buildkit |
| RUN /bin/sh -c go get -d -v # buildkit |
| RUN /bin/sh -c go build -o /app/cmd/site # buildkit |
| EXPOSE map[8080/tcp:{}] |
| ENTRYPOINT ["/app/cmd/site"] |