fetcher/Dockerfile

18 lines
267 B
Docker
Raw Permalink Normal View History

2020-03-03 15:22:13 +03:00
FROM golang:latest AS builder
COPY . /fetcher
WORKDIR /fetcher
ENV CGO_ENABLED=0
RUN go build -o /usr/local/bin/fetcher
FROM alpine:latest
COPY --from=builder /usr/local/bin/fetcher /usr/local/bin/fetcher
RUN apk update && apk add ca-certificates
USER nobody