You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
354 B
Plaintext
19 lines
354 B
Plaintext
# build image
|
|
FROM golang:1.14.0-alpine as builder
|
|
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache bash git openssh
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
# Test then build app
|
|
RUN go build -v github.com/creekorful/trandoshan-crawler/cmd/feeder
|
|
|
|
# runtime image
|
|
FROM alpine:latest
|
|
COPY --from=builder /app/feeder /app/
|
|
|
|
WORKDIR /app/
|
|
|
|
ENTRYPOINT ["./feeder"] |