mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
19 lines
316 B
Plaintext
19 lines
316 B
Plaintext
FROM golang:1.14-alpine as build
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /src
|
|
|
|
RUN go get github.com/sirupsen/logrus
|
|
RUN go get github.com/streadway/amqp
|
|
|
|
COPY consumer.go /src
|
|
|
|
RUN go build consumer.go
|
|
|
|
|
|
FROM alpine as runtime
|
|
|
|
COPY --from=build /src/consumer /app/consumer
|
|
|
|
CMD [ "/app/consumer" ] |