aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
blob: 3161fa0e97ca24433c0713068a1086226b9edf62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.23-alpine AS builder

WORKDIR /app

RUN apk update && apk add --no-cache build-base sqlite
COPY go.mod go.sum ./
RUN go mod download

COPY . ./
RUN CGO_ENABLED=1 GOOS=linux go build -o feedaka main.go

FROM alpine

WORKDIR /app
COPY --from=builder /app/feedaka /app

EXPOSE 8080
CMD ["/app/feedaka"]