Skip to content

Instantly share code, notes, and snippets.

@lartie
Created May 25, 2020 10:04
Show Gist options
  • Save lartie/6699dd2cca6c2fba6a06c2bbfa5d8566 to your computer and use it in GitHub Desktop.
Save lartie/6699dd2cca6c2fba6a06c2bbfa5d8566 to your computer and use it in GitHub Desktop.
golang-docker-dev
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