9 lines
219 B
Docker
9 lines
219 B
Docker
|
FROM golang:1.12-alpine as builder
|
||
|
WORKDIR /data
|
||
|
COPY . .
|
||
|
RUN apk add --no-cache git make && \
|
||
|
go build -o crawler .
|
||
|
|
||
|
FROM geckodriver:latest
|
||
|
COPY --from=builder /data/crawler /usr/bin/crawler
|
||
|
CMD ["/usr/bin/crawler"]
|