Files
blt/Dockerfile.dev
Gregory Ballantine 4e0223052e
ci/woodpecker/push/woodpecker Pipeline was successful
Updated Docker configs to use Air for auto-reloading
2026-07-24 12:01:20 -04:00

22 lines
405 B
Docker

FROM golang:1.26
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
COPY . .
RUN make build BUILD_DIR=/tmp