dev.Dockerfile 406 B

12345678910111213141516171819
  1. # Development environment
  2. # -----------------------
  3. # pinned because of https://github.com/moby/moby/issues/45935
  4. FROM golang:1.20.5-alpine
  5. WORKDIR /porter
  6. RUN apk update && apk add --no-cache gcc musl-dev git
  7. # for live reloading of go container
  8. RUN go install github.com/cosmtrek/air@latest
  9. COPY go.mod go.sum ./
  10. RUN go mod download
  11. COPY . ./
  12. RUN chmod +x /porter/docker/bin/*
  13. CMD air -c .air.toml