storyapi (latest)

Published 2 years ago by jesper.martinsson

Installation

docker pull git.systementor.se/jesper.martinsson/storyapi:latest
sha256:be32dc387354f138e9c78f7c8ffbc16f1d668b9942c575f1f2964f2af52947e8

Image 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
WORKDIR /go/src/mypackage/myapp/
COPY ./src . # buildkit
ENV DB_HOST=mysql
ENV DB_USER=root
ENV DB_PW=thebestapi
ENV DB=api
RUN /bin/sh -c go get -d -v # buildkit
RUN /bin/sh -c go test ./... # buildkit
RUN /bin/sh -c go build -o /app/cmd/site # buildkit
EXPOSE map[8080/tcp:{}]
ENTRYPOINT ["/app/cmd/site"]
Details
Container
2 years ago
42
OCI / Docker
linux/amd64
213 MiB
Versions (1) View all
latest on 2024-05-03