mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-06-06 05:15:01 +08:00
19 lines
364 B
Docker
19 lines
364 B
Docker
FROM golang:1.24-alpine AS builder
|
|
LABEL authors="nite"
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
ARG version=dev
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o igdb-database .
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=builder /app/igdb-database /app/igdb-database
|
|
|
|
ENTRYPOINT [ "./igdb-database"] |