mirror of
https://github.com/gosom/google-maps-scraper.git
synced 2026-09-19 07:27:12 +08:00
24 lines
450 B
Docker
24 lines
450 B
Docker
FROM golang:1.21.1-bullseye as withnode
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y ca-certificates npm nodejs net-tools && \
|
|
npm install && \
|
|
npx playwright@v1.25.0 install-deps
|
|
|
|
ENV GO111MODULE=on
|
|
#ENV CGO_ENABLED=1
|
|
ENV GOOS=linux
|
|
ENV GOARCH=amd64
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
|
|
RUN go build -o /usr/bin/google-maps-scraper
|
|
|
|
RUN PLAYWRIGHT_INSTALL_ONLY=1 google-maps-scraper
|
|
|
|
ENTRYPOINT ["google-maps-scraper"]
|