Files
bamort/docker/Dockerfile.backend.dev
T
Frank f6f0b334c2 Updated Got to 1.25.5
made spells display correct spell information
2025-12-19 17:04:20 +01:00

23 lines
545 B
Docker

# Development Dockerfile für Go Backend mit Live-Reloading
#FROM golang:1.23-alpine
FROM golang:1.25-alpine
# Install necessary packages for CGO and SQLite
RUN apk add --no-cache gcc musl-dev sqlite-dev
# Install Air für Live-Reloading (kompatible Version für Go 1.23)
#RUN go install github.com/cosmtrek/air@v1.49.0
RUN go install github.com/air-verse/air@latest
WORKDIR /app
# Copy go.mod and go.sum first
COPY go.mod go.sum ./
RUN go mod download
# Expose port
EXPOSE 8180
# Use Air for live reloading
CMD ["air", "-c", ".air.toml"]