turash/bugulma/backend/Dockerfile.dev
Damir Mukimov 215562ed40
Some checks failed
CI/CD Pipeline / frontend-lint (push) Failing after 28s
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / backend-lint (push) Failing after 31s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped
fix: Align all Go versions and ensure consistent module configuration
- Update Dockerfile from golang:1.21 to golang:1.25.3 to match go.mod
- Update Dockerfile.dev from golang:1.25 to golang:1.25.3 for consistency
- Add GO111MODULE=on to all Go-related CI steps for explicit module mode
- Ensures all environments (CI, Docker, local) use Go 1.25.3 consistently
2025-12-24 23:13:02 +01:00

29 lines
555 B
Docker

# Development Dockerfile for hot reload
FROM golang:1.25.3-alpine AS builder
# Install air for hot reload
RUN go install github.com/air-verse/air@latest
# Set working directory
WORKDIR /app
# Copy go mod files
COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy air configuration
COPY .air.toml ./
# Copy source code
COPY . ./
# Note: Source code will be mounted via volume, not copied
# Expose port
EXPOSE 8080
# Command to run air for hot reload
CMD ["sh", "-c", "if [ -f .air.toml ]; then air -c .air.toml; else air; fi"]