Spaces:
Sleeping
Sleeping
| FROM golang:1.23 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy go.mod and go.sum first to leverage Docker cache | |
| COPY go.mod go.sum ./ | |
| RUN go mod download | |
| # Copy the rest of the application | |
| COPY . . | |
| # Build the Go app | |
| RUN go build -o moodlink-backend | |
| # Run the binary | |
| CMD ["./moodlink-backend"] |