# Development environment
# -----------------------
FROM golang:1.15-alpine
WORKDIR /porter

RUN apk update && apk add --no-cache gcc musl-dev git

COPY go.mod go.sum ./
RUN go mod download

COPY . ./

RUN chmod +x /porter/docker/bin/*

# for live reloading of go container
RUN go get github.com/cosmtrek/air

CMD air -c .air.toml