bathyscaphe/build/Dockerfile-crawler

19 lines
349 B
Plaintext
Raw Normal View History

2020-04-03 15:43:59 +00:00
# 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/cmd/crawler
2020-04-03 15:43:59 +00:00
# runtime image
FROM alpine:latest
COPY --from=builder /app/crawler /app/
WORKDIR /app/
ENTRYPOINT ["./crawler"]