This commit is contained in:
Jay
2019-03-09 20:39:41 +08:00
commit 2c6ec585d0
5 changed files with 141 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
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"]