Created
May 25, 2020 10:04
-
-
Save lartie/6699dd2cca6c2fba6a06c2bbfa5d8566 to your computer and use it in GitHub Desktop.
golang-docker-dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine | |
ARG tz=Europe/Moscow | |
ARG repository=/go/src/app | |
ENV TZ=$tz | |
ENV REPOSITORY_PATH=$repository | |
RUN apk update && apk add --update \ | |
alpine-sdk \ | |
git \ | |
tzdata \ | |
make \ | |
bash | |
RUN go get -u github.com/golang/dep/cmd/dep && \ | |
go get -u github.com/cweill/gotests && \ | |
go get github.com/pilu/fresh | |
ADD . ${REPOSITORY_PATH} | |
WORKDIR ${REPOSITORY_PATH} | |
CMD make dep ; fresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment