14 lines
319 B
Docker
14 lines
319 B
Docker
FROM golang:1.24-alpine AS builder
|
|
# Ensure we have a c compiler.
|
|
RUN apk add --no-cache build-base ca-certificates fuse3 sqlite
|
|
|
|
WORKDIR /src
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN go build -ldflags='-s -w' -tags 'linux' -trimpath -o /dist/app ./cmd/server
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/dist/app"]
|