mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-06-02 19:45:01 +08:00
u
This commit is contained in:
parent
f91817474c
commit
d17370d94c
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
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"]
|
Loading…
x
Reference in New Issue
Block a user