mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
21 lines
347 B
Docker
21 lines
347 B
Docker
FROM golang:1.23-alpine
|
|
|
|
# Install dependensi dasar
|
|
RUN apk add --no-cache git curl bash build-base
|
|
|
|
# Install Air (pakai repo baru air-verse)
|
|
RUN go install github.com/air-verse/air@v1.52.3
|
|
|
|
WORKDIR /lti-api
|
|
|
|
# Cache dependencies
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
EXPOSE 8081
|
|
|
|
CMD ["air", "-c", ".air.toml"]
|