Files
hse-2026/materials/11-consensus/seminar/kv/Dockerfile
T

34 lines
505 B
Docker
Raw Normal View History

2026-11-28 00:56:20 +03:00
FROM golang:1.19-alpine AS go-builder
WORKDIR /usr/src/app
RUN apk add --update \
curl \
gcc \
git \
make \
musl-dev
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /app
FROM alpine:3.13
# Install packages required by the image
RUN apk add --update \
bash \
ca-certificates \
coreutils \
curl \
jq \
openssl \
&& rm /var/cache/apk/*
COPY --from=go-builder /app ./
CMD [ "./app" ]