go-crawler/Dockerfile
2019-03-10 20:04:20 +08:00

9 lines
249 B
Docker

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