caddy's file server, but as a standalone application
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.

17 lines
327B

  1. FROM golang:1.14 as build-env
  2. WORKDIR /go/src/app
  3. ADD . /go/src/app
  4. ENV PATH="$GOPATH/bin:$PATH"
  5. ENV GOBIN="$GOPATH/bin"
  6. RUN go env
  7. RUN go get -d -v ./...
  8. RUN go build -o /go/bin/faila ./src
  9. FROM gcr.io/distroless/base
  10. COPY --from=build-env /go/bin/faila /
  11. COPY --from=build-env /go/src/app/hosted/ /hosted/
  12. CMD ["/faila"]