This is just an exercise to learn some go. This program downloads a list of images and creates a webserver with a photo gallery to serve them. The images in the repo are technical comics.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 372B

123456789101112
  1. FROM golang:1.12.6-alpine3.9 as builder
  2. COPY gomic.go /go/gomic.go
  3. RUN apk add -U git
  4. RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o gomic .
  5. FROM scratch as production
  6. COPY --from=builder /go/gomic /gomic/gomic
  7. COPY templates /gomic/templates/
  8. COPY static /gomic/static/
  9. COPY origin /gomic/origin/
  10. WORKDIR /gomic
  11. ENTRYPOINT ["/gomic/gomic"]