|
|
@@ -5,6 +5,9 @@ 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
|
|
|
|
|
|
@@ -12,7 +15,4 @@ 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
|
|
|
+CMD air -c .air.toml
|