17 lines
366 B
Text
17 lines
366 B
Text
|
#build stage
|
||
|
FROM golang:1.17-alpine AS builder
|
||
|
RUN apk add --no-cache git
|
||
|
WORKDIR /go/src/app
|
||
|
COPY . .
|
||
|
WORKDIR /go/src/app/cmd/feedizer
|
||
|
RUN go build -o /go/bin/app -v .
|
||
|
|
||
|
#final stage
|
||
|
FROM alpine:latest
|
||
|
RUN apk --no-cache add ca-certificates
|
||
|
COPY --from=builder /go/bin/app /app
|
||
|
ENV FEEDIZER_ALLOWROOT=1
|
||
|
ENTRYPOINT /app
|
||
|
LABEL Name=feedizer Version=0.0.1
|
||
|
EXPOSE 3000
|