13 lines
302 B
Docker
13 lines
302 B
Docker
|
FROM golang:1.21.3-alpine3.18 AS builder
|
||
|
|
||
|
COPY go.mod go.sum /opt/minireader/
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . /opt/minireader
|
||
|
RUN go build -o /opt/minireader/minireader /opt/minireader/cmd/minireader
|
||
|
|
||
|
FROM alpine:3.18
|
||
|
COPY --from=builder /opt/minireader/minireader /app/minireader
|
||
|
|
||
|
CMD ["/app/minireader"]
|