A web server for quba.fr that resizes images.
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.
 
 

20 lines
328 B

  1. FROM golang:buster as builder
  2. RUN apt update && apt install -y libmagickwand-6.q16-dev
  3. RUN mkdir /build
  4. WORKDIR /build
  5. COPY *.go go.mod go.sum ./
  6. COPY pkg ./pkg
  7. RUN go build -o main
  8. FROM debian:buster-slim
  9. RUN apt update && apt install -y libmagickwand-6.q16-6 git
  10. COPY --from=builder /build/main /
  11. ENTRYPOINT ["/main"]