tkgcci avatar

The best alpine os with docker ever now

tkgcci

Published: 25 Nov 2019 › Updated: 25 Nov 2019The best alpine os with docker ever now

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"]

Leave The best alpine os with docker ever now to:

Written by

Read more #takagotch posts


Best Posts From tkgcci

We have not curated any of tkgcci's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From tkgcci