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.

15 lines
376 B

FROM golang:1.12-alpine as builder
WORKDIR /data
COPY . .
RUN apk add --no-cache make git ca-certificates && \
make
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
COPY --from=builder /data/convert-webp /usr/bin
COPY config.default.yml config.yml
EXPOSE 10230
VOLUME ["/img-src", "/img-dist"]
CMD ["/usr/bin/convert-webp", "-f", "/data/config.yml"]