2022-07-12 11:13:26 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
FROM golang:1.18-alpine AS builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN go mod vendor
|
2022-08-02 15:23:28 +02:00
|
|
|
RUN go build -mod vendor -o ./sshfp-updater
|
2022-07-12 11:13:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.16.0
|
|
|
|
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.authors="artur@status.im"
|
2022-08-02 15:23:28 +02:00
|
|
|
LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-updater"
|
2022-07-12 11:13:26 +02:00
|
|
|
LABEL org.opencontainers.image.revision=${REVISION}
|
|
|
|
|
|
|
|
WORKDIR /root
|
2022-08-02 15:23:28 +02:00
|
|
|
COPY --from=builder /app/sshfp-updater ./
|
2022-07-12 11:13:26 +02:00
|
|
|
|
2022-08-02 15:23:28 +02:00
|
|
|
ENTRYPOINT [ "./sshfp-updater" ]
|