~sungo/sbs-http

sbs-http/Dockerfile -rw-r--r-- 684 bytes
763ad0f8 — sungo restructure a bit 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM golang:1.11.1-alpine AS build
ENV CGO_ENABLED 0

RUN apk add --no-cache --update make git perl-utils dep
RUN apk add --no-cache ca-certificates

ENV PATH "/go/bin:${PATH}"

RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

RUN go get -u github.com/alecthomas/gometalinter && gometalinter --install

ARG CACHE_BUSTER="wat"
RUN mkdir -p /go/src/git.sungo.io/sungo/sbs-http

COPY . /go/src/git.sungo.io/sungo/sbs-http
WORKDIR /go/src/git.sungo.io/sungo/sbs-http

RUN make

FROM alpine

COPY --from=build /go/src/git.sungo.io/sungo/sbs-http/runner.sh /bin/sbshttp.sh
COPY --from=build /go/src/git.sungo.io/sungo/sbs-http/sbshttp /bin/sbshttp

CMD [ "/bin/sbshttp.sh" ]