mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
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
- 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
29 lines
555 B
Docker
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"]
|