mirror of
https://github.com/status-im/sshfp-generator.git
synced 2025-01-19 00:52:47 +00:00
21 lines
509 B
Docker
21 lines
509 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM golang:1.18-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go mod vendor
|
|
RUN go build -mod vendor -o ./sshfp-updater
|
|
|
|
|
|
FROM alpine:3.16.0
|
|
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
|
|
|
|
LABEL org.opencontainers.image.authors="artur@status.im"
|
|
LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-updater"
|
|
LABEL org.opencontainers.image.revision=${REVISION}
|
|
|
|
WORKDIR /root
|
|
COPY --from=builder /app/sshfp-updater ./
|
|
|
|
ENTRYPOINT [ "./sshfp-updater" ]
|