Containerfile.dev
Rama main · réplica de lectura del repositorio original.
FROM golang:1.27-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
RUN apk add --no-cache git
RUN go install github.com/air-verse/air@v1.67.4
WORKDIR /app
# Sources are volume-mounted at runtime.
# GOFLAGS=-mod=mod allows Go to update go.sum automatically.
ENV GOFLAGS=-mod=mod
EXPOSE 8080
CMD ["sh", "-c", "go mod tidy && air -c .air.toml"]