go-crawler/Dockerfile

9 lines
249 B
Docker
Raw Normal View History

2019-03-09 12:39:41 +00:00
FROM golang:1.12-alpine as builder
WORKDIR /data
COPY . .
RUN apk add --no-cache git make && \
go build -o crawler .
2019-03-10 12:04:20 +00:00
FROM docker.mtfos.xyz/mtfos/geckodriver-alpine:latest
2019-03-09 12:39:41 +00:00
COPY --from=builder /data/crawler /usr/bin/crawler
CMD ["/usr/bin/crawler"]