The best alpine os with docker ever now

FROM alpine:3.7

WORKDIR / ENV GOPATH /go

RUN apk add --no-cache --virtual=build=deps go git gcc g++

COPY . /go/src/github.com/takagotch/todoapi
RUN go get github.com/go-sql-driver/mysql

RUN go get gopkg.in/gorp.v1

RUN cd /go/src/github.com/takagotch/todoapi && go build -o bin/todoapi cmd/main.go

RUN cd /go/src/github.com/takagotch/todoapi && cp bin/todoapi /usr/local/bin/

RUN apk del --no-cache build-deps

CMD ["todoapi"]

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center