Updated Docker configs to use Air for auto-reloading
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -4,8 +4,14 @@ WORKDIR /app
|
||||
|
||||
RUN apt install -y make gcc
|
||||
|
||||
# Make sure /app is safe regardless of who owns it
|
||||
RUN git config --global --add safe.directory /app
|
||||
|
||||
ENV CGO_ENABLED=1
|
||||
|
||||
# Install Air for auto-reloading
|
||||
RUN go install github.com/air-verse/air@latest
|
||||
|
||||
# Copy dependency definitions first (caching optimization)
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
Reference in New Issue
Block a user