2019-07-05 16:54:48 +03:00
|
|
|
FROM golang:1.12-alpine as builder
|
2022-12-08 23:22:55 +03:00
|
|
|
|
|
|
|
RUN apk --no-cache update \
|
|
|
|
&& apk --no-cache upgrade \
|
|
|
|
&& apk add --no-cache gcc \
|
|
|
|
&& apk add --no-cache musl-dev \
|
|
|
|
&& apk add --no-cache git make
|
|
|
|
|
2019-07-05 16:54:48 +03:00
|
|
|
RUN go get -v github.com/jteeuwen/go-bindata/go-bindata
|
|
|
|
WORKDIR /go/cowyo
|
|
|
|
COPY . .
|
2022-12-08 20:58:38 +03:00
|
|
|
|
2019-07-05 16:54:48 +03:00
|
|
|
RUN make build
|
2017-10-11 07:26:33 +03:00
|
|
|
|
2019-07-05 16:54:48 +03:00
|
|
|
FROM alpine:latest
|
2017-10-11 07:26:33 +03:00
|
|
|
VOLUME /data
|
2019-07-06 17:57:39 +03:00
|
|
|
EXPOSE 8050
|
2019-07-05 16:54:48 +03:00
|
|
|
COPY --from=builder /go/cowyo/cowyo /cowyo
|
|
|
|
ENTRYPOINT ["/cowyo"]
|
2019-07-06 17:57:39 +03:00
|
|
|
CMD ["--data","/data","--allow-file-uploads","--max-upload-mb","10","--host","0.0.0.0"]
|