| 123456789101112131415161718 |
- # Development environment
- # -----------------------
- FROM golang:1.20-alpine
- WORKDIR /porter
- RUN apk update && apk add --no-cache gcc musl-dev git
- # for live reloading of go container
- RUN go install github.com/cosmtrek/air@latest
- COPY go.mod go.sum ./
- RUN go mod download
- COPY . ./
- RUN chmod +x /porter/docker/bin/*
- CMD air -c .air.toml
|